Problems with Chinese characters
the following problems:
I have a mysql database with Chinese characters (stored as utf8_general_ci). In phpmyadmin, Chinese characters are printed correctly.
Now I am getting database values ββusing mysqli:
$stmt = $mysqli->prepare("SELECT *** FROM projects p WHERE PID = ***");
$stmt->execute();
$stmt->store_result();
$stmt>bind_result(***);
$stmt->fetch();
Chinese characters are now displayed as "????".
The page encoding is set to:
<meta charset="utf-8">
What am I doing wrong?
Thanks in advance.
+3
source to share