Query Chinese garbled characters?
Labmem No.000
Labmem No.000 2017-10-18 19:36:40
0
4
1320

The Chinese displayed after php queries the database becomes '? ? 'what to do? No method of searching online will work

Labmem No.000
Labmem No.000

reply all(3)
18674060620

You can set the encoding after connecting to the database

$query=set names uft8;

$result=$conn->query($query);

Darker

Set the encoding format to utf8 mode first, then add <meta charset=utf-8>

Labmem No.000

I found it=- =


##http://yanue.net/post-134.html

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template