900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > Eclipse导入项目出现中文乱码解决方法

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

时间:2021-05-19 01:04:08

相关推荐

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

结果

中文正常显示

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。