黄舟2017-04-17 17:50:52
Because the default encoding format of sublime is UTF8, which is the universal standard encoding format for web pages, but windows defaults to China’s own GB2312 or its extended GBK, so subl is used. If you directly open Chinese in a code editor such as ime, it will display garbled characters. There are two reasons: kind of solution
ススkスmmThe upper left corner of file->set file encoding, select GBK encoding inside;
Another method is to install sublime’s convertToUtf8 plug-in. This plug-in is very powerful and can convert files in various formats to UTF8, so that there will be no Chinese garbled characters.
怪我咯2017-04-17 17:50:52
In the status bar below sublime, there is a block on the right that displays file encoding information. You can click it and a menu will pop up. You can manually set the encoding method of the file.
高洛峰2017-04-17 17:50:52
You can download and install a sublime text plug-in, convertToUtf8, which can convert files in various encoding formats to UTF8 encoding. . .
阿神2017-04-17 17:50:52
Regarding encoding, I usually use notepad++. It can generally correctly identify the encoding and can easily convert it to any other encoding you want. You can try it.