Search

User login

Poll

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

My YM

Author Information

sentono
Offline
Last seen: 6 days 18 hours ago
Joined: 09/21/2007

Alexa Rank

Who's online

There are currently 0 users and 6 guests online.
Home
  • warning: Invalid argument supplied for foreach() in /usr/home/wowtutorial/public_html/sites/all/modules/adsense_injector/adsense_injector.module on line 352.
  • warning: Invalid argument supplied for foreach() in /usr/home/wowtutorial/public_html/sites/all/modules/adsense_injector/adsense_injector.module on line 35.

How To Configure PHP To Support Korean Encode

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.

Recent comments

Facebook Fans

Sponsors

Online Store

Tag Cloud