Eclipse導入項目出現中文亂碼解決方法
在使用eclipse導入課本的java文件或網上項目時會遇到中文亂碼問題

步驟一
1、 Project——Properties——Resource——Text file encoding——Other:UTF-8,然后點擊Apply and Close

2、 選擇出現亂碼的項目:File——Properties——Text file encoding:Other:UTF-8,然后點擊Apply and Close

步驟二
Window——Preferences——General——Workspace——Text file Encoding:Other:UTF-8,然后點擊Apply and Close

步驟三
Window——Preferences——General——Content Type——Text——Java Source File
將Default encoding改為UTF-8或者GBK,點擊Update然后點擊Apply and Close


結果
中文正常顯示

