Resolve Sublime Text 2 Chinese display garbled problem __ garbled problem

Source: Internet
Author: User
Tags sublime text

The key to solving the problem is to let sublime Text 2 support GB2312 and GBK. The steps are as follows:

1. Install sublime Package control.
On Sublime Text 2, open the console with ctrl+~ and enter the following code inside, Sublime text 2 automatically installs package control.

Import Urllib2,os; pf= ' Package control.sublime-package '; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP) if not os.path.exists (IPP) else None; Urllib2.install_opener (Urllib2.build_opener) (urllib2. Proxyhandler ())); Open (Os.path.join (IPP,PF), ' WB '). Write (Urllib2.urlopen (' http://sublime.wbond.net/' +pf.replace ('), '%20 '). Read () ); Print (' Please restart Sublime Text to finish installation ')
2. Restart Sublime Text 2

3. Then use Ctrl+shift+p to open the command line mode, in which input install package to search for the package.

4. General use of "ConvertToUTF8" and "GBK Encoding Support" can normally read and write in CJK format files.



Transferred from http://blog.csdn.net/yichangzyh/article/details/8585285

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.