Sublime Text Chinese GBK file garbled problem in Linux system

Source: Internet
Author: User
Tags sublime text

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.