php config
sudo vim /etc/php5/apache2/php.ini
default_charset="utf-8"
mbstring.internal_encoding = 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
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:
Post a Comment