Intellij IDEA設定系列(四):各種亂碼解決方案
阿新 • • 發佈:2019-01-10
IDEA有分很多種亂碼,選單欄亂碼,console輸出中文亂碼,程式碼亂碼等等,以下提供一些解決方案。
1.設定裡面的快捷鍵設定keymap出現中文,或者中文亂碼
原因:IDEA裡面的jdk選擇的是本地的JDK,而JDK1.5以上的版本是由多國語言的,會選擇作業系統的本地語言,所以編譯的提示就會變成中文。
解決方案:
在 IntelliJ IDEA 2016.1\bin\idea64.exe.vmoptions IntelliJ IDEA 2016.1\bin\idea.exe.vmoptions 都新增 -Duser.country=EN -Duser.language=us 2.console輸出中文亂碼 解決方案: 在 IntelliJ IDEA 2016.1\bin\idea64.exe.vmoptions IntelliJ IDEA 2016.1\bin\idea.exe.vmoptions 都新增 -Dfile.encoding=UTF-8 3.選單欄中文亂碼