中文亂碼問題分類:
1.編碼普通中文亂碼
解決方法:
①settings --> editor --> code style --> file encodings 中IED Encoding 和project Encoding defult encoding for properties files 三個設置為utf-8
②打開idea安裝地址\\bin中idea.exe.vmoptions 和idea64.exe.vmoptions 打開文件在最後加上-Dfile.encoding=UTF-8
這樣中文顯示OK了
2.properties文件中文亂碼
解決方法:
project Encoding defult encoding for properties files後面的要打勾
3.console控制檯中文亂碼
解決方法:
VM options 中加上-Dfile.encoding=UTF-8
4.搜索框中文亂碼
解決方法:
editor --> color& font --> font中primary font 一定要選擇DialogInput
5.svn註釋中文亂碼
同上4
閱讀更多 俗人非俗 的文章