It seems so difficult to understand, my web application is incorrect encoding in some places where use the bootstrap's plugin: dataTables, but others are correct. Like this image
I have already done something set tomcat's VM option -Dfile.encoding=UTF-8
, which can solve this problem. However, the console output is incorrect.
In actually, I have referenced the solutions in StackOverflow. For example, from this link
Set
-Dfile.encoding=UTF-8
and-Dfile.encoding=UTF-8
in bothidea.exe.vmoptions
andidea64.exe.vmoptions
.Changed Settings > Editor > File encodings IDE Encoding/Project Encoding/Default encoding for property files to
UTF-8
.Set tomcat's VM option
-Dconsole.encoding=UTF-8
instead of-Dfile.encoding=UTF-8
. Year, console output is correct, but JSP is not.
Making the console output and JSP display correct encoding at the same time is so difficult. It has confused me a long time.
Thanks in advance for your help