IDEA Console 乱码

IDEA

1. Setting->Editor->File Encodings:

  • 修改Global Encoding 为 UTF-8
  • 修改Project Encoding 为UTF-8
  • 修改Properties Files(*.properties) 的Default encoding for properties files 为UTF-8

2. Help->Edit Custom VM Options

  • 添加: -Dfile.encoding=UTF-8

3. 如果是SpringMVC 使用tomcat运行:

  • 在Edit configuration->Server->VM options 中 添加: -Dfile.encoding=UTF-8

一般2.3两个修改后,重启IDEA就可以了
最后关闭IDEA,重启!

posted @ 2021-02-05 11:41  那年长安  阅读(501)  评论(0编辑  收藏  举报