MyEclipse10中文乱码

1 进入window->preferences

  • general->content types,可以设置Text对应的default encoding值为UTF-8或为空,然后点击update即可。也可能点击Text进入java source file属性,设置default encoding值为UTF-8或为空,点击update。
  • general->editors->text editors->spelling。设置encoding属性为UTfF-8.
  • general->workspace。设置text file encoding为UTF-8.
  • myeclipse ->files and editors。此处通常无需修改,保持默认即可。默认ASP and PHP和JSP的encoding为ISO Latin-1,其他属性的encoding值为ISO 10646/Unicod(UTF-8)

2 右击工程的properties属性,选择resource,设置text file encoding值为UTF-8.

posted @ 2015-03-31 16:41  dldg  阅读(290)  评论(0编辑  收藏  举报