In the run / debug configuration dialog Startup / Connection panel,
Check Pass environment variables.
And add an environment variable,
Name填 JAVA_TOOL_OPTIONS, Value填 -Dfile.encoding=UTF-8.
Click OK. Restart TOMCAT debugging, you can see the console log tomcat Chinese normally show.
The above basically it should not be garbled
Above all try or distortion you need to modify the configuration file
The idea to enter the installation directory, enter the bin directory. Idea.exe.vmoptions find this file and idea64.exe.vmoptions,
In the last line -Dfile.encoding = UTF-8, two files are preferably coupled.
Original link: https: //blog.csdn.net/dandandeshangni/article/details/48544221