【报错】File was loaded in the wrong encoding: UTF-8

中文是乱码的,无论是注释中还是代码中,都是乱码的。
原因:我们文件使用UTF-8进行编辑,而Windows默认使用GBK编码格式,所以导致打开文件时出现乱码。

解决办法2
在编辑文本时,设置指定的编码格式。
encoding=“utf-8”

【报错】File was loaded in the wrong encoding: UTF-8

相关文章:

  • 2021-10-24
  • 2021-08-11
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2021-05-09
  • 2021-09-11
猜你喜欢
  • 2021-04-26
  • 2021-11-26
  • 2021-12-12
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案