In This Tutorial i want to configure my PHP to support korean encode.
here is a short tutorial how to do that

In order to support other encode we need to reconfigure PHP with mbstring

Login into the server as root

Configure PHP 5.3.0 with mbstring

#cd /root/php-5.3.0
#./configure  --enable-mbstring
#make && make install

Modify php.ini

#vi /etc/php.ini

###change few lines below ###
default_charset = EUC-KR

[mbstring]
mbstring.language = Korean
mbstring.internal_encoding = EUC-KR
mbstring.http_input = auto
mbstring.http_output = EUC-KR
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none;  

### leave others php setting default ####

Note :
if you don't know where is your php.ini
you can verify it by this command below

#php -i |grep php.ini
Configuration File (php.ini) Path => /etc
Scan this dir for additional .ini files => (none)
additional .ini files parsed => (none)

Restart Apache Webserver

#/usr/local/apache/bin/apachectl stop
#/usr/local/apache/bin/apachectl start

 


Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Sponsors

Chat Box

Poll

What is your favorite Virtualization Server ?:
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
11 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Alexa Rank

Counter

  • Site Counter: 42,114
  • Unique Visitor: 8,396
  • Registered Users: 69
  • Unregistered Users: 62
  • Blocked Users: 3
  • Your IP: 178.154.163.30
  • Visitors:
  • Today: 279
    This week: 4572
    This month: 4572
    This year: 15080

Donate Me

Does this site make your life easier?
Help me keep it online.

Who's online

There are currently 0 users and 13 guests online.