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