When php inserts Chinese into the sqlserver database, the query will be garbled.

clipboard.png
php;
.net:

clipboard.png

I don"t know what"s going on?

Feb.28,2021

you need to confirm whether the encoding of the database table is consistent with that displayed on the page. For example, whether it is all UTF-8.


it should be caused by the difference between the database code and the php code. Sqlserver is generally gbk coding, and php is generally utf-8 coding. Finally, set the code on the php side, and compare and change the code to be more reliable than the already running database

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b358f3-2bfae.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b358f3-2bfae.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?