Eclipse导入项目出现中文乱码解决方法

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

结果

中文正常显示

相关推荐

小米待机多久:影响因素和续航时间
365体育app手机版安全下载

小米待机多久:影响因素和续航时间

📅 07-10 👁️ 3371
女人的阴唇长什么样?
365体育app手机版安全下载

女人的阴唇长什么样?

📅 07-09 👁️ 8401
android输入法好用,安卓手机输入法哪个最好用?
365体育app手机版安全下载

android输入法好用,安卓手机输入法哪个最好用?

📅 07-15 👁️ 9440