在新安装的eclipse中编辑已有的项目,而项目原来是在其他系统中做的,那么很容易出现乱码。
主要原因是系统默认的编码不同,而eclipse会将系统默认的编码作为自己的默认编码,最终出现乱码。
解决的方法是进入
project-properties-resource
在text file encoding下的other 中选择相应的编码
其他语言版本可以使用类似的方法解决。
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">