中文亂碼問題分類:
編碼普通中文亂碼
properties文件中文亂碼
console控制檯中文亂碼
搜索框中文亂碼
svn註釋中文亂碼
問題截圖:
2、properties文件中文亂碼
4,、搜索框中文亂碼
5、svn註釋中文亂碼
解決方法:
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
PS:最好所有都設置一遍,解決所有ide中文亂碼問題。