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 Control
Plugin, which can be downloaded in either of the following ways:
- 1st types: Copy the import command of the corresponding version on the above website, and then use
Control + ~
Open the console, enter the copied command, and press the Enter key to execute the installation;
- 2nd types: Download from the above website
Package Control
And then copy the installation packageInstalled Packages
Folder.
In fact, only1st typesThis method is not easy to use.2nd typesMethod.
When we setPackage Control
After the plug-in is downloaded (installed), restart Sublime Text, and then use the key combinationCommand + Shift + P
Open 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 pointCodecs33
After 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.