Sublime Text is a very good editor with a nice interface and powerful features. Plus a rich plug-in, but also cross-platform, is definitely a real deal artifact Ah!
It is well known that the Sublime Text is very poor in Chinese support, and there is almost no special support for that. In particular, GBK encoded in Chinese files, directly open is a group of garbled characters. Jon Skinner, the developer of ST, seems to have no Chinese GBK to support the Chinese market. Since the developers do not give support to Chinese, then the Chinese users can only solve the problem by themselves. Here thank enthusiastic Netizen Seanliang developed a powerful ConvertToUTF8 plug-in, this plugin makes Chinese GBK is no longer a problem. Plugin address is https://github.com/seanliang/ConvertToUTF8
After loading this plugin, Windows can use Sublime Text to view and edit the Chinese GBK file normally. But the first few days the author in Linux under the use of Sublime Text, found that even if the installation of ConvertToUTF8 plug-ins, Chinese GBK files are still garbled. At first thought is the system does not support GBK encoding reason, toss for a long time, also did not solve the problem.
Inadvertently read the CONVERTTOUTF8 plug-in documentation, found that Seanliang students in the note has been given a description, originally in the Linux environment, Sublime Text embedded Python lack of ConvertToUTF8 plug-in depends on dynamic-link libraries, which cause file decoding to fail, can be resolved after manual installation of these libraries.
Blame yourself to see the document is not careful Ah, resulting in vain for so long time.
Here again to thank the kind Seanliang classmate, he once again provided us with the external library installation plugin. This plugin has two versions, Sublime text 2 is codecs26,sublime text 3 is Codecs33.
Here to give the plug-in address, you can install the students on demand.
Sublime Text 2:codecs26 Https://github.com/seanliang/Codecs26
Sublime Text 3:codecs33 Https://github.com/seanliang/Codecs33