The Chinese displayed after php queries the database becomes '? ? 'what to do? No method of searching online will work
You can set the encoding after connecting to the database
$query=set names uft8;
$result=$conn->query($query);
Set the encoding format to utf8 mode first, then add <meta charset=utf-8>
I found it=- =
You can set the encoding after connecting to the database
$query=set names uft8;
$result=$conn->query($query);
Set the encoding format to utf8 mode first, then add <meta charset=utf-8>
I found it=- =
##http://yanue.net/post-134.html