MySQL Chinese garbled code has been changed to utf8. Is that still the case

CSDN Q & A 2022-02-13 07:32:29 阅读数:145

mysql chinese garbled code changed

5.5.27 Version of If the data is in Chinese, there is garbled code

img
I don't know why




Take the answer :

For the possible causes and solutions of this situation, please refer to here ,https://blog.csdn.net/whathellll/article/details/99566893



Other answers 2:

Delete table , Appoint UTF-8 Code and rebuild the table .


Other answers 3:

Try a higher version


Other answers 4:

Print it before inserting it into the database , See what's wrong


Other answers 5:

Visually check whether the table data is garbled If yes, set the table and field type to utf8 If there is no garbled code in the form, it is in cmd Switch to UTF-8
Carry out orders chcp 65001


Other answers 6:

cmd It seems that the decoding method is GBK Of Change to GBK try

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130732273834.html