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.
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.
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.
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.
Just set the encoding and that’s it.
Baidu: sublime encoding settings
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.
You can download and install a sublime text plug-in, convertToUtf8, which can convert files in various encoding formats to UTF8 encoding. . .
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.