Eclipse导入项目后中文乱码
在Eclipse中导入项目后出现中文乱码。
原因是导入的项目的编码方式与Eclipse中设置的编码方式不同。
1.去修改Workspace的编码方式
打开Eclipse—Window—Preferences—General—Workspace
--Text file encoding—Other—UTF-8
![Image 1][]
然后点击Apply and Close
2.去修改单个工程的编码方式
右击项目,选择Properties—Resource—Text file encoing—Other—UTF-8
![Image 1][]
然后Apply and Close。
重启Eclipse即可。
[Image 1]:
还没有评论,来说两句吧...