方法是用vim , vim 打开相应文件, :set fileencoding即可显示文件编码格式 将文件编码转换为utf-8 :set fileencoding=utf-8 转载于:https://www.cnblogs.com/xqnq2007/p/6725044.html