This article mainly describes the actual solution to the MySQL EMS garbled problem. I recently learned jsp (preferred for SUN Enterprise applications) mySQL (the best combination with PHP) databases are used. But garbled code has always plagued me.
I think that as long as the page to the database using a code such as UTF-8) should not produce garbled. As a result, my Chinese characters are not purely garbled, but in the form of Chinese numbers and English garbled characters.
The solution was difficult and took a lot of detours. The most fundamental reason was EMS2007, which had poor support for Chinese characters!
Directly Using EMS2007 to add and modify Chinese data in the database will result in Chinese numbers + English garbled characters, such as inputting data "I love Chinese ", results database storage is indeed "I love Chinese ahv", and later I switched to EMS2005 ver3.7.7.1 and found that this version can not store UTF-8 data. Finally, the EMS2005 ver3.7.7.1 + GB2312 encoding combination is used, and the problem is solved!
If you also encounter "Chinese numbers + English garbled characters", try this method. Of course, if Chinese characters are displayed in garbled characters, it is easier to solve the problem. You can search for the answer by baidu.
The above content describes how to solve the MySQL EMS garbled problem, hoping to help you in this regard.
The above content is an introduction to the troubleshooting of MySQL EMS garbled code. I hope you will have some gains.