1.将Workspace中的Text file encoding改为UTF-8。Window--->Preference-->Workspace如图1

解决eclipse中源码乱码图1解决eclipse中源码乱码

2.打开Content Types,选中Java Archive(.jar/.zip),在下面的Default encoding中填入utf-8update后点击ok。Window-->Preferences-->Content Types如图2解决eclipse中源码乱码图2

3.重启eclipse,问题解决

相关文章:

  • 2021-09-10
  • 2021-12-18
  • 2021-12-24
  • 2022-01-01
  • 2021-09-27
  • 2021-09-11
  • 2022-01-22
  • 2021-12-07
猜你喜欢
  • 2021-10-10
  • 2022-01-12
  • 2021-12-31
  • 2021-12-21
  • 2021-04-13
  • 2021-10-27
相关资源
相似解决方案