//PDO $conn->query("SET NAMES utf8"); or $conn->exec("set names utf8"); //mysqli mysql_query("set names 'utf8'");