In jsp, user authentication is carried out. If the user name is Chinese, it cannot be verified successfully. Other characters can be verified successfully.

  mysql, question

clipboard.png

clipboard.png
This section is to enter the database to verify the user name and password

clipboard.png
The database looks like this
But I’m under cmd, and select becomes

clipboard.png

clipboard.png
My background output shows that the Chinese received by my java processing text has been processed, which is normal Chinese, and the current situation in the database

clipboard.png
I made another insert statement under cmd. The Chinese display here is right, but it is wrong in navicat for mysql. This problem has been bothering me for a long time. Let’s have a great god take me with you! !
clipboard.png

There is no need to convert strings across character sets; getParameter () has already returned a string

It is estimated that the code of the database is inconsistent with the code specified by the database connection inside.