`
天天向上1989
  • 浏览: 413586 次
  • 性别: Icon_minigender_2
  • 来自: 南京
社区版块
存档分类
最新评论

MyEclipse中文显示,配置UTF-8

阅读更多

在MyEclipse中编写Web Project,有3个地方需要改编码设置

1.

window-->preference-->general-->content type

然后在<Content Types>中展开每一个子项,并在<Default encoding>中输入"UTF-8 "点update!

2.

window-->preference-->MyEclipse-->Files and Editors

将每个子项的"Encoding"改为"ISO 10645/Unicode(UTF-8) "或"Chinese,National Standard ",点Apply!

以后所有创建的文档类型都是UTF-8格式!

 

3.为了使项目中不会出现extjs中文乱码的问题,建议把myeclipse的workspace的设置成utf-8的编码

window-->preference-->general-->workspace->text files encoding ->other    选择Utf-8

这样在加载js代码的时候  js的编码和jsp的编码相同  就不会出现乱码  或是extjs效果不能显示的问题了

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics