Chinese garbled characters when mysql database saves records

 The Chinese parameters obtained in the java background are correct, but after saving the database, it prompts garbled characters. Refer to the following figure for the solution of DB and database table configuration.

If there are garbled characters, the troubleshooting steps are:

1. Check whether the http request has garbled characters. Whether the tomcat encoding is set, and whether the http request has the encoding format set.

2. Database coding method.

3. Table coding.



 
 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326683409&siteId=291194637