本文鏈接:https://blog.csdn.net/liqimo1799/article/details/81811153
中文亂碼問題分類:
編碼普通中文亂碼
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中文亂碼問題。
————————————————
版權聲明:本文為CSDN博主「liqimo1799」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/liqimo1799/article/details/81811153