1、打开Window -> preference, 左边 General -> Content Types, 然后在右边上面的框中打开Text, 选中Java Source File (你看到下面的框中有个*.java 就对了), 然后在下面的“Default edcodng”文本框中输入“UTF-8”, 点“Update”,就OK了。(什么文件的编码都可以在这里设置!)

2、上述招数不好用,文件上右击,选择“Properties”,Text file encoding/other 输入GBK,保存!

相关文章:

  • 2022-01-01
  • 2021-08-19
  • 2022-02-07
  • 2021-07-04
  • 2021-07-11
  • 2021-12-27
  • 2021-12-13
  • 2021-03-31
猜你喜欢
  • 2022-01-03
  • 2021-06-26
  • 2022-01-01
  • 2022-01-10
  • 2022-12-23
  • 2021-12-04
  • 2021-12-04
相关资源
相似解决方案