Sublime Text 3 The installation and use of the package Control and resolution Sublime text 3 does not display the correct Chinese problem

Source: Internet
Author: User



Sublime text 3 in the installation and use of the package Control, English good can be seen in this website, the following simple explanation:



Https://packagecontrol.io/installation






1.



open sublime text3 press ctrl+~Paste the following code or click view--> Show consolemenu



Import Urllib.request,os,hashlib; h =



' df21e130d211cfc94d9b0905775a7c0f ' +



' 1e3d39e33b79698005270310898eea76 ';



PF = ' package control.sublime-package ';



IPP = Sublime.installed_packages_path ();



Urllib.request.install_opener (Urllib.request.build_opener (



Urllib.request.ProxyHandler ())); by = Urllib.request.urlopen (



' http://packagecontrol.io/' + pf.replace (', '%20 '). read ();



DH = hashlib.sha256 (by). Hexdigest (); Print (' Error validating download (got%s instead of%s),



Please try manual install '% (DH, h)) if DH! = H Else Open (Os.path.join (IPP, PF), ' WB '). Write (by)



This sublime text will install the package Control we need. If not, the package will not be found after installing the Chinese plugin.



2.



Restart Sublime Text3;



3.



In sublime text, such as clicking on the set of package control, or pressing CTRL+SHIFT+P to open the command line mode, enter the Install keyword, and then click the first item in the Automatic drop-down menu: Package control: Install the package.












At this point you will see a = sign in the lower left corner to move around, wait a moment, will again in the command line to pop up a drop-down menu. Enter "ConvertToUTF8" or "GBK Encoding support" to select a match. Chinese characters are displayed as normal.



Sublime Text 3 The installation and use of the package Control and resolution Sublime text 3 does not display the correct Chinese problem


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.