现在的位置: 首页 > 综合 > 正文

Eclipse 源码.class file 出现乱码,解决办法之一

2018年04月18日 ⁄ 综合 ⁄ 共 317字 ⁄ 字号 评论关闭

Character
Enconding in my java classes in Eclipse is messed up. How to fix it?

useful solution:

You need to reconfigure the workspace encoding. Go to Window > Preferences and
enter filter text "encoding" and set to 
UTF-8 everywhere
when applicable, especially the 
Workspace's
text encoding.

一般.class 文件都以UTF-8 编码,所以,设置你的workspace encoding is UTF-8,可解决messy code.

抱歉!评论已关闭.