问题描述
开发用的是ubuntu系统,有的时候会将win7系统的文件,copy到ubunut,我用的代码编辑器是sublime,有时候会出现以下问题:

can not convert file encoding of xx to GBK,it was saved as UTF-8 instead:
unkown encoding:GBK
说明该文件默认的保存方式改成了GBK.
解决方法
如下:在Set File Encoding to选项中选择UTF-8.

success to fix!