Resolve Sublime Text 3 garbled

Source: Internet
Author: User
Tags sublime text

Reproduced from:

1, open Sublime Text 3, press ctrl+~ to open the control line, copy and paste the following Python code, and then enter the run.
Copy and paste the following code:

import urllib.request,os,hashlib; 
h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 
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( '' + 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)  

If not, click Packagecontrol the URL, copy the new code at the URL, and execute.

2, restart sublime text3,command+shift+p open the command line

Enter "Install package" at the bottom there is a "=" in the walk, and so motionless

3, continue to enter Converttoutf8, the following will be prompted, click

4, if the opening of the time or garbled, and prompted with error. Perform step 3 again and enter CODECS33

New problems encountered, sublime Text always prompt update, very annoying.

1, find Preferences-> Settings-user (set up users)
2. Add before the end of the last curly brace ("}")

    , "Update_check": false

Turn off restart sublime text.

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: 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.