There are two different character sets:
To find out the current value of these variables using PDO, you can get the corresponding results SHOW VARIABLES; eg:
$qry = $db->query("SHOW VARIABLES LIKE 'character_set_client'");
mysql_client_encoding() , :
character_set MySQL.
, , .
, MYSQL_ATTR_INIT_COMMAND DSN ( ):
$db = new PDO("mysql:dbname=$db;host=$host;charset=$charset", $user, $password);