File was loaded in the wrong encoding: 'UTF-8’
File was loaded in the wrong encoding: 'UTF-8原因:文件出现乱码并且提示File was loaded in the wrong encoding:‘UTF-8’。因为我们文件使用utf-8编译,但是windows默认使用GBK所以乱码。
解决办法:
一、点击右上角的Reload in another encoding,选择GBK(治标不治本)
File was loaded in the wrong encoding: 'UTF-8File was loaded in the wrong encoding: 'UTF-8
二、根本解决:
用Notepad++ 打开文件 > 编码 > 以UTF-8格式编码,然后回IDEA,重新 mvn clean install

相关文章:

  • 2021-08-08
  • 2021-06-12
  • 2021-07-21
  • 2021-07-16
猜你喜欢
  • 2021-11-26
  • 2021-10-15
  • 2021-12-12
  • 2021-10-08
  • 2021-10-24
  • 2021-12-17
相关资源
相似解决方案