1. 程式人生 > >IDEA控制臺日誌中文亂碼問題解決

IDEA控制臺日誌中文亂碼問題解決

安裝目錄 utf-8 dea 解決 服務 亂碼問題 ide 兩個 控制

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(一定要重啟)

IDEA控制臺日誌中文亂碼問題解決