The Chinese displayed after php queries the database becomes '? ? 'what to do? No method of searching online will work
小张2018-05-16 10:59:36
You can set the encoding after connecting to the database
$query=set names uft8;
$result=$conn->query($query);
Darker2017-10-20 14:39:02
Set the encoding format to utf8 mode first, then add <meta charset=utf-8>