Solve the garbled problem of MYSQLEMS recently learned JSP and used MYSQL database. But garbled code has always plagued me.
I think that as long as the page to the database uses 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.