It is troubled by Chinese coding problems

xiaoxiao2021-03-06  67

This week, I encountered Chinese code. My development environment is Linux, Resin, MySQL. In fact, it is a relatively simple thing, submit input from the form, then saved to the database. The results found that some characters appear "?" Garbled. For example, entered "Personnel Office", which is "personnel ??" when reading it on the page. I also thought that the issue of JSP page coding settings was found for a long time and did not find a problem. I didn't get better suggestions in the forum. Later, I found some clues in Google. Some people mentioned the encoding problem of the mysql database connection. Later, in the connection URL, "Useunicode = True & Charset = GB2312" solved this problem. .

The problem is solved, but there is still a little not to understand why only some Chinese characters will appear "?".

转载请注明原文地址:https://www.9cbs.com/read-120064.html

New Post(0)