- Log in to post comments
# Apache
/etc/apache2/conf.d/charset
AddDefaultCharset utf-8
# PHP
/etc/php5/apache2/php.ini
[PHP]
default_charset = "utf-8"
[mbstring]
mbstring.language = utf-8
mbstring.internal_encoding = utf-8
mbstring.http_input = utf-8
mbstring.http_output = utf-8
# MySQL
/etc/mysql/my.cnf
[client]
default-character-set = utf8
[mysqld]
default-character-set = utf8
character-set-server = utf8
collation-server= utf8_general_ci
init_connect = 'SET collation_connection = utf8_general_ci'
init_connect = 'SET NAMES utf8'
[mysqldump]
default-character-set = utf8
[mysqlimport]
default-character-set = utf8
[mysql]
default-character-set = utf8
# LINKS:
# http://www.xaranetblog.de/2008/08/02/apache-php-und-mysql-auf-utf-8-umstellen/