源代码注释中文乱码

lg_asus 2011-11-14 02:14:33
Dear 大神们:
eclipse项目中的中文注释全部是乱码,在general里用过gbk utf-8 所有charset都还是乱码,

请问:如何改成正常显示

ps:项目从svn down下来就是乱码
...全文
733 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
huntor 2011-11-14
  • 打赏
  • 举报
回复
试试使用smartsvn 检出代码 http://www.syntevo.com/smartsvn/documentation.html?page=project.settings
[Quote]Text File Encoding

The text file encoding affects only the presentation of file contents, for instance when comparing a file (see Show Changes) and it will only be used if for the file itself no charset has been specified by its MIME-Type property. The text file encoding settings are not relevant for SVN operations itself, which generally work only on the byte-level.[/Quote]
qingqing_benniu 2011-11-14
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cgw1123 的回复:]
打开你的MyEclipse,在工具栏点击window选择preferences
打开后选择第一个General里面的最后一个Workspace,然后在右边设置:
Text file encoding——Other的值选择:UTF-8
这样那些乱码应该都没有了,祝你好运!
[/Quote]
good
甲壳虫 2011-11-14
  • 打赏
  • 举报
回复
看看原有项目是什么编码的,GBK,UTF-8,GB2312这些都有可能,改一下吧。
東刀人 2011-11-14
  • 打赏
  • 举报
回复
打开你的MyEclipse,在工具栏点击window选择preferences
打开后选择第一个General里面的最后一个Workspace,然后在右边设置:
Text file encoding——Other的值选择:UTF-8
这样那些乱码应该都没有了,祝你好运!

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧