idea各種中文顯示亂碼解決大全

中文亂碼問題分類:

1.編碼普通中文亂碼

解決方法:

①settings --> editor --> code style --> file encodings 中IED Encoding 和project Encoding defult encoding for properties files 三個設置為utf-8


idea各種中文顯示亂碼解決大全


②打開idea安裝地址\\bin中idea.exe.vmoptions 和idea64.exe.vmoptions 打開文件在最後加上-Dfile.encoding=UTF-8

這樣中文顯示OK了


idea各種中文顯示亂碼解決大全


2.properties文件中文亂碼

解決方法:

project Encoding defult encoding for properties files後面的要打勾


idea各種中文顯示亂碼解決大全


3.console控制檯中文亂碼

解決方法:

VM options 中加上-Dfile.encoding=UTF-8


idea各種中文顯示亂碼解決大全


4.搜索框中文亂碼

解決方法:

editor --> color& font --> font中primary font 一定要選擇DialogInput


idea各種中文顯示亂碼解決大全


5.svn註釋中文亂碼

同上4


分享到:


相關文章: