Describes how to enable garbled Chinese Characters in GBK format in Sublime Text. sublimegbk

Source: Internet
Author: User

Describes how to enable garbled Chinese Characters in GBK format in Sublime Text. sublimegbk

Sublime Text is a code editor with beautiful user interfaces and powerful functions, such as code thumbnails, Python plug-ins, and code segments. You can also customize Key Binding, menus, and toolbar. Sublime Text provides the following functions: spelling check, bookmarks, complete Python API, Goto, instant project switching, multiple options, and multiple windows. Sublime Text is also a cross-platform editor that supports Windows, Linux, Mac OS X, and other operating systems.

However, because the default encoding format of Sublime Text is UTF-8, this causes a lot of GBK encoding files in the Chinese display garbled. Although we can also use:File->Reopen with the encoding

Select different encoding formats, but it does not provide support for GBK. However, you can rest assured that here we will provide a solution to solve the garbled characters in the GBK format of Sublime Text.

First, download the Package through "Installation-Package Control ".Package ControlPlugin, which can be downloaded in either of the following ways:

  1. 1st types: Copy the import command of the corresponding version on the above website, and then useControl + ~Open the console, enter the copied command, and press the Enter key to execute the installation;
  2. 2nd types: Download from the above websitePackage ControlAnd then copy the installation packageInstalled PackagesFolder.

In fact, only1st typesThis method is not easy to use.2nd typesMethod.

When we setPackage ControlAfter the plug-in is downloaded (installed), restart Sublime Text, and then use the key combinationCommand + Shift + POpen the search window and enterinstall package:

As shown in, clickInstall Package, Open the Package list, and then enterCodecs33, Click the corresponding plug-in to install:

At this pointCodecs33After the plug-in is installed, the problem of garbled GBK Chinese characters can be solved.

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.