Friday, December 09, 2011

Getting a LAMP install going with full UTF-8 (not necessary with gentoo, it already defaults to UTF-8 everywhere).

php config
sudo vim /etc/php5/apache2/php.ini

default_charset="utf-8"
mbstring.internal_encoding = UTF-8

sudo service apache2 restart

mysql config
sudo vim /etc/mysql/my.cnf

[client]
default-character-set = utf8

[mysqld]
default-character-set=utf8
character-set-server=utf8
collation-server=utf8_general_ci
skip-character-set-client-handshake

sudo service mysql restart






source(s): http://www.source.com

No comments: