Home > Back-end >  How to check the String coding of front-end coming?
How to check the String coding of front-end coming?

Time:10-18

Database storage is utf-8, and if the front of the String is not utf-8, should do inspection, prevent endures is the code in the database?
The web container have this test? I am using Tomcat,

CodePudding user response:

Each frame can be through the filter or some configuration of the encoding method to solve the problem, suggestion directly baidu: [name] the framework character set

CodePudding user response:

reference 1st floor nayi_224 response:
each frame can be through the filter or some configuration of the encoding method to solve the problem, suggestion directly baidu: [name] the framework character set

Whether where processing, and finally know what is the code coding can be converted to need?

CodePudding user response:

Best directly on the physical properties using the annotation of the validation check
  • Related