In Sublime Text 3 to solve the situation of Chinese garbled

Source: Internet
Author: User
Tags sublime text
Install the package ControlAutomatic installation

To use CTRL + ' shortcut keys or open the command line from the View->show console menu, paste the following code:

Import Urllib.request,os; PF = ' Packagecontrol.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener ( Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')) . Read ())

If it goes well, you can now see the package settings and the package control two menus under the Preferences menu. Manual Installation

You may not be able to install using code for a variety of reasons, and you can manually install the package Control by clicking the Preferences>browsepackages menu and entering the upper directory of the Open directory before entering installed packages/Directory download package control.sublime-package and copy to installed packages/directory restart Sublimetext

Reference and package download address use the pack Control to open the command line, enter install package, return
Windows:ctrl+shift+p mac:command+shift+p Input Install package, enter

Continue entering ConvertToUTF8, enter
However, it is still a mistake to open the local file after installation

Originally is missing Codecs, so open command line –> Enter install package–>codecs Repeat step install ConvertToUTF8 restart Sublime text3, open garbled file (if there is garbled, press CTRL + SHIFT+C)

Reference

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.