MySQL
Edit /etc/mysql/my.cnf and find skip-external-locking and append the following linesdefault-character-set=utf8 default-collation=utf8_general_ci character-set-server=utf8 collation-server=utf8_general_ci init_connect = 'SET collation_connection = utf8_general_ci' init_connect = 'SET NAMES utf8'Now find [mysqldump] and [mysql] append this line to each of them
default-character-set=utf8
Apache2
Append to /etc/apache2/apache2.confAddDefaultCharset UTF-8
PHP5
Edit /etc/php5/apache2/php.ini and replace/append default_charsetdefault_charset = "UTF-8"Alternatively you can add this line to your PHP root file
ini_set('default_charset', 'UTF-8');
Now restart Apache2 and Mysql
/etc/init.d/apache2 restart /etc/init.d/mysql restart