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.

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。