参考:File was loaded in the wrong encoding: 'UTF-8'_苦涩-CSDN博客 File was loaded in the wrong encoding: 'UTF-8'
1. 问题如下:
File was loaded in the wrong encoding: 'UTF-8'
错误分析:当我们打开一个文件,可是中文出现乱码,这是可能因为我们文件使用UTF-8进行编辑,而Windows默认使用GBK编码格式,所以导致打开文件时出现乱码
2. 解决方法:
在编辑文本时,设置指定的编码格式。
如图所示,可以正常显示了。