eclipse:.class、.jar文件乱码

步骤1、在eclipse菜单栏中,Window–>Preferences–>General–>Content types

将JAR Content , Java Class File 的Default encoding都设置为你要的编码。

eclipse查看jar包源代码乱码问题解决
步骤2、光设置上面的还不行,还需要再设置Workspace的编码。Window–>Preferences–>General–>Workspace,将Text file encoding的默认编码也设置为和上面一致的编码。

 eclipse查看jar包源代码乱码问题解决

步骤3、保存,重启Eclipse即可发现乱码问题解决了。

猜你喜欢

转载自atiandao.iteye.com/blog/2275676