经常性的在eclipse中使用编码的时候,会遇到这种情况。

can not resolved as a type

或者是  系统找不到符号等等。

 

这时候使用eclipse在文档上点击“右键”,选择properties,会看到在UTF-8下面还有 一句这样的话The byte order mark (BOM) is UTF-8

解决方法:

将文档使用GBK编码,这时候会有多于的符号出现,删除他们,然后再改为UTF-8的形式。

相关文章:

  • 2021-07-18
  • 2021-04-14
  • 2021-04-08
  • 2021-11-04
  • 2021-12-31
猜你喜欢
  • 2021-04-03
  • 2021-08-13
  • 2021-09-05
  • 2022-02-26
  • 2022-12-23
相关资源
相似解决方案