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

来源:互联网 发布:matlab最优化计算 编辑:程序博客网 时间:2024/06/04 19:35

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.

0 0
原创粉丝点击