试过百度的各种解决办法:

  1. 修改Tomcat 9.0\conf\logging.properties中的
    java.util.logging.ConsoleHandler.encoding = GBK

Tomcat输出信息不乱码,但是控制台输出乱码

  1. xxx

都无效

最后找到解决办法:
Intellij IDEA -> Help -> Edit Custom VM Options
在最后面增加两行内容

-Dfile.encoding=UTF-8
-Dconsole.encoding=UTF-8

重启Intellij IDEA 中文乱码问题解决

Last modification:October 24, 2019
If you think my article is useful to you, please feel free to appreciate