IDEA控制台乱码(Tomcat日志乱码)解决办法

1.打开 File->Setting->Editor->File Encodings,将Global EncodingProject EncodingDefault encodeing for properties files这三项都设置成UTF-8,然后点击OK。如下图:

image-20220112153430975

2.打开 Help->Edit Custom VM Options

加上下面一行:

1
-Dfile.encoding=UTF-8

image-20220112153623173

3.打开 Edit Configrations

vm option -Dfile.encoding=utf-8,点击OK

image-20220112153728537

4.重启IDEA

0%