Sublime Text 3 Chinese garbled problem solving

Source: Internet
Author: User
Tags sublime text

1. Open Sublime Text 3, press ctrl+~ to open the control line, copy and paste the following Python code, and then enter run. 2. Copy and paste the following code: import Urllib.request,os,sys; EXEC ("If Sys.version_info < (3,) or os.name! = ' nt ': Raise OSError (' This code was for Windows ST3 only! ')"); Pr= ' preferences.sublime-settings '; ip= ' ignored_packages '; N= ' Package Control '; S=sublime.load_settings (PR); Ig=s.get (IP); Ig.append (n); S.set (Ip,ig); Sublime.save_settings (' preferences.sublime-settings '); pf=n+ '. Sublime-package '; Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); By=urllib.request.urlopen (' https://packagecontrol.io/' +pf.replace (', '%20 '). read (); Open (Os.path.join (Sublime.installed_packages_path (), pf), ' WB '). write (by); Ig.remove (n); S.set (Ip,ig); Sublime.save_settings (PR); Print (' Package control:3.0.0 upgrade successful! ') 3. Restart Sublime Text 3. 4. Press Ctrl+shift+p to open the command line, type install package, enter, and then continue entering ConvertToUTF8, enter. After installation, should solve the problem, if still not, and then install CONVERTTOUTF8 installation GBK Encoding support, just fine.

Sublime Text 3 Chinese garbled problem resolution

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.