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.
2. Start IDEA and click Help->Edit Custom VM Options...
Add -Dfile.encoding=UTF-8 at the end
3. Via File-settings-Editor-File-encodings
4. Enter Tomcat configuration
under the Server tab, add -Dfile.encoding=UTF-8 at VM options:
My problem is solved in this way, but it may not be comprehensive, please refer to it.
How to solve the problem of garbled characters when IDEA uses tomcat
Guess you like
Origin blog.51cto.com/12859164/2547732
Recommended
Ranking