IDEA控制台日志中文乱码问题解决

IDEA控制台日志中文乱码解决

  1、修改IDEA配置文件

    IDEA安装目录,bin文件夹下 idea64.exe.vmoptions 和 idea.exe.vmoptions这两个文件,分别添加:-Dfile.encoding=UTF-8。

  2、修改IDEA设置

    FileEncoding 中的 GlobalEncoding ProjectEncoding Default encoding for properties 都设置为UTF-8。

  3、在部署服务器的VM options中添加:-Dfile.encoding=UTF-8

  4、重启IDEA

方案来源:https://www.cnblogs.com/Ezi0/p/10462723.html

posted @ 2020-08-16 18:45  梧桐更兼细雨_到黄昏  Views(545)  Comments(0Edit  收藏  举报