1, Sublime Text 2/3 How to support Chinese GBK encoding (solve Chinese garbled)
Sublime text default is only support UTF8 encoding, so sometimes, when we open the GBK file, the file will be in the first part of the garbled, as shown in:
Sublime Text 3 does not support Chinese GBK encoding, in the editing of some GBK encoded files will appear garbled, although sublime text 2 has a lot of support GBK encoded plug-ins, but mostly in sublime text 3 can not work, including GBK Encoding Support Plugin. Search on the Internet a lot about solving sublime Text 3 display Chinese garbled methods are not.
My solution is as follows: Search for ConvertToUTF8 and Codecs33in the package control.
1) Select "Preferences"-"package Control" in the menu bar, or use the shortcut key ctrl+shift+p to recall
2) Enter "Install package" in the input box and click the "Install Package" which is automatically prompted below.
3) After a few seconds, will pop up an input box, enter "CovertToUTF8" in the input box, the following will be the corresponding plug-in, mouse click Install; Wait a few seconds, the plugin will be installed successfully.
4) Install the CODECS33 in the same way.
5) Without restarting sublime Text, you will find that Chinese content has been displayed correctly.
Tool Series Sublime Text 3 Usage Summary