#This is a database table
千战2021-07-02 11:13:32
Or you can write this in the fourth line of your Conn.php:
$db->query("SET NAMES 'utf8'");
千战2021-07-02 11:06:33
Initialize a PDO object and set utf-8 encoding.
<?php
$dbh = new PDO('mysql:host=localhost;dbname=database name;charset=utf8', "root", "YOUXIA");
?>