Eclipse導入項目出現中文亂碼解決方法


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

 

 

 

 

 

 

結果

中文正常顯示

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM