中文亂碼問題分類:
編碼普通中文亂碼
properties檔案中文亂碼
console控制台中文亂碼
搜尋框中文亂碼
svn注釋中文亂碼
問題截圖:
2、properties檔案中文亂碼
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZuBnLyUzN4UDOyYTM4ADMxkTMwIzLc52YucWbp5GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.png)
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中文亂碼問題。