If there is Chinese in the database, the MySQL default language is not Chinese when there is a word in [mysqld] in the configuration file C: /Winnt/my.ini:
Default-character-set = GBK then restarts mysql
If there is still a problem in writing
Connection = drivermanager.getConnection ("JDBC: mysql: // localhost / test? user = root & password = & useful = true & characterencoding = GBK");
Or declare in JSP: <% @ Page ContentType = "text / html; charset = GB2312" Language = "java" ... If there is any Chinese data in mysql, the Chinese in the JSP is garbled When you write HTM tools written in Chinese, this problem occurs. I used EmEditor to play Chinese directly. This is, the Chinese in HTM and the Chinese data entered in the page can't get up. Later I changed the Chinese talent in HTM, I will change it. Maybe you encounter. I am almost. Try with another editing tool to rewrite some Chinese to see some Chinese, maybe the problem is solved.