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(治标不治本)
二、根本解决:
用Notepad++ 打开文件 > 编码 > 以UTF-8格式编码,然后回IDEA,重新 mvn clean install
File was loaded in the wrong encoding: 'UTF-8
最新推荐文章于 2024-06-12 10:40:40 发布