Encoding problem using Spring MVC

前端 未结 6 1097
北海茫月
北海茫月 2020-12-10 12:56

I have a demo web application that creates users. When I try to insert data in other languages (like french) the characters are not encoded correctly. The code on the contr

6条回答
  •  时光说笑
    2020-12-10 13:50

    Output of System.out.println() depends on console encoding, so it's not a good way to debug encoding problems.

    To check that your values are decoded properly, you should show it at another page. Actually, it's already done in the case of form validation failure, so your system works fine if values in the fields remains the same after validation error.

提交回复
热议问题