Or you can write this in the fourth line of your Conn.php:
$db->query("SET NAMES 'utf8'");
Initialize a PDO object and set utf-8 encoding.
<?php
$dbh = new PDO('mysql:host=localhost;dbname=database name;charset=utf8', "root", "YOUXIA");
?>
Check the encoding, and don’t have Chinese characters in the path
Or you can write this in the fourth line of your Conn.php:
$db->query("SET NAMES 'utf8'");
Initialize a PDO object and set utf-8 encoding.
<?php
$dbh = new PDO('mysql:host=localhost;dbname=database name;charset=utf8', "root", "YOUXIA");
?>
Check the encoding, and don’t have Chinese characters in the path