Using mysql_query() to set it (such as SET NAMES utf8) is not recommended. See the MySQL character ...
php.net