Troubleshooting of MYSQLEMS garbled characters _ MySQL

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.