How to solve the problem of garbled characters when IDEA uses tomcat

1. Find the idea.exe.vmoptions and idea64.exe.vmoptions files in the bin directory under the IDEA installation directory, and add -Dfile.encoding=UTF-8 to the end of these two files.
How to solve the problem of garbled characters when IDEA uses tomcat
2. Start IDEA and click Help->Edit Custom VM Options...
How to solve the problem of garbled characters when IDEA uses tomcat
Add -Dfile.encoding=UTF-8 at the end
How to solve the problem of garbled characters when IDEA uses tomcat
3. Via File-settings-Editor-File-encodings
How to solve the problem of garbled characters when IDEA uses tomcat
4. Enter Tomcat configuration
How to solve the problem of garbled characters when IDEA uses tomcat
under the Server tab, add -Dfile.encoding=UTF-8 at VM options:
How to solve the problem of garbled characters when IDEA uses tomcat
My problem is solved in this way, but it may not be comprehensive, please refer to it.

Guess you like

Origin blog.51cto.com/12859164/2547732