方法一、

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

Eclipse 源代码里 中文乱码

方法二、

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

Eclipse 源代码里 中文乱码Eclipse 源代码里 中文乱码

不行的话就试下边方法。

方法三、

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

Eclipse 源代码里 中文乱码

相关文章:

  • 2021-11-04
  • 2021-05-02
  • 2021-12-10
  • 2021-04-13
  • 2021-11-19
  • 2021-04-02
  • 2022-01-03
猜你喜欢
  • 2022-01-01
  • 2021-11-14
  • 2022-02-09
  • 2021-11-03
  • 2021-10-08
  • 2021-06-02
相关资源
相似解决方案