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

结果
中文正常显示

评论 23
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值