IDEA starts Tomcat Chinese garbled characters (solved)

Simply write a demo test

Chinese garbled characters appear all the time when starting tomcat

First of all, change it to a unified UTF-8 in the setting 

I have all set to UTF-8, but there are still garbled characters, so further operations are required

Add to VM options: 

Find the bin file under the IDEA folder of this computer

found under the bin file

 

open with notepad 

Add in the last line:
-Dfile.encoding=UTF-8

Guess you like

Origin blog.csdn.net/weixin_58642210/article/details/127135635