This is what I do in php:
$dbhandler = new PDO('mysql:host='.domain.':'.port.';dbname='.dbName.';',db_user,db_password);
$stmt = $dbhandler->prepare("INSERT INTO ".myTable.
" (value) VALUES (:value)");
$stmt->bindValue(':value', "試打中文");
$stmt->execute();
This is what I get via phpMyAdmin:
è©¦æ‰“ä¸æ–‡
But I can manually insert chinese in phpMyAdmin, and it shows to monster char…
What did I do wrong? (The Collation of table field is : utf8_unicode_ci).
Thank you.
Change your code to: