1 .设置js文件的默认编码格式为UTF-8
.在Windows->Preference页面中,选择General->Content Types , 在右边的框中,选择Text->Javascript,将下面的Default Encoding改为UTF-8
2. 设置workspace的编码格式为UTF-8
.在Windows->Preference页面中,选择General->WorkSpace 选择右侧框中的Text File encoding,改为UTF-8
3.设置工程Reosource环境为UTF-8
在Project-->Properties--->Resource 选择右侧框中的Text File encoding,选择Other 并设为UTF-8
在下面的框中 New text file line delimiter 选择 other,并设为windows 或 Unix 
最后
以上就是哭泣冬日最近收集整理的关于eclipse 解决 乱码的全部内容,更多相关eclipse内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复