This time I will bring you the precautions for dealing with opening Chinese garbled characters in GBK format in Sublime Text, and dealing with opening Chinese garbled characters in GBK format in Sublime Text. The following is a practical case, let’s take a look.
Sublime Text is a codeeditor with a beautiful user interface and powerful features such as codeThumbnails, Python Plug-ins, code snippets, etc. Key bindings, menus and toolbars can also be customized. The main features of Sublime Text include: spell check, bookmarks, complete Python API, Goto function, instant project switching, multi-selection, multi-window and more. Sublime Text is also a cross-platform editor that supports Windows, Linux, and Mac. Operating systems such as OS X.
However, since the default encoding format of Sublime Text is UTF-8, this causes Chinese characters in many GBK-encoded files to display garbled characters. Although we can also pass:File –>
Reopen with the encoding
Package Control plug-in through "Installation - Package Control". There are two ways to download this plug-in, namely:
Type 1: Copy the corresponding version of the import command on the above website, then open the console through Control ~ in Sublime Text, enter the copied command, and press Enter to execute
Installation;
installation package from the above website, and then copy this installation package to
Installed Packages folder.
th method when the th method does not work.
After we download (install) thePackage Control plug-in, restart Sublime Text, then open the
Search window through the key combination
Command Shift P, and enter install package:
Install Package to open the Package list, then enter
Codecs33 and click the corresponding plug-in to install
Codecs33 plug-in is installed, the problem of GBK Chinese garbled characters can be solved.
Implementation method of pre-order, in-order and post-order traversal of JS binary tree
How to obtain the touch event Sliding distance length
The above is the detailed content of Processing Sublime Text to open Chinese garbled characters in GBK format. For more information, please follow other related articles on the PHP Chinese website!