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

.
Menu