步骤1:

  在eclipse菜单栏中,Window–>Preferences–>General–>Content types,将JAR Content , Java Class File 的Default encoding都设置为你要的编码。

Eclipse-查看jar源码乱码问题解决

步骤2:

  光设置上面的还不行,还需要再设置Workspace的编码。Window–>Preferences–>General–>Workspace,将Text file encoding的默认编码也设置为和上面一致的编码。

Eclipse-查看jar源码乱码问题解决

步骤3:

  重启eclipse

 

相关文章:

  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
  • 2021-07-06
  • 2022-01-08
  • 2021-11-19
  • 2021-06-14
  • 2022-01-01
猜你喜欢
  • 2021-08-23
  • 2021-12-21
  • 2021-09-15
  • 2021-10-24
  • 2021-11-20
相关资源
相似解决方案