Eclipse 源代码里 中文乱码

来源:互联网 发布:同等学力研究生 知乎 编辑:程序博客网 时间:2024/05/16 09:38

方法一、

第一步:在项目上右击选择”prepertise“(属性),进入属性设置界面。
第二步:将resource中的”Text file Encoding“,选择”other“中的适当类型(本例变为”UTf-8“),之后点击”ok“按钮,完成设置。


方法二、

工具栏:Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8


不行的话就试下边方法。

方法三、

Window->Preferences->General->Workspace   面板Text file encoding 选择UTF-8。