王德森

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

问题描述:原项目的公共函数都打包成jar 导致中文注释乱码

解决办法:用EditPlus打开代码查看 发现所用字符集为UTF-8;到myeclipse中设置编码字符集,具体步骤如下:

1、Windows--Preferences--General--Content Types--将Java Class File和Text的Default encoding 改为UTF-8---update

2、Windows--Preferences--General--Workspace---将Text file encoding改为UTF-8

3、右键点击项目--Preferences--Resource--将Text file encoding改为UTF-8

再打开文件看看效果。。。。。。

 

原文地址:http://blog.csdn.net/skipper_java/article/details/6325221

posted on 2014-04-11 11:16  王德森  阅读(317)  评论(0)    收藏  举报