desen

问题描述:原项目的公共函数都打包成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

分类:

技术点:

相关文章:

  • 2022-01-01
  • 2021-12-13
  • 2022-01-10
  • 2021-05-30
  • 2021-12-23
  • 2022-01-13
  • 2021-12-27
  • 2021-05-04
猜你喜欢
  • 2021-06-26
  • 2021-08-06
  • 2021-12-04
  • 2021-12-04
  • 2022-12-23
  • 2021-08-19
  • 2022-02-07
相关资源
相似解决方案