Home  >  Article  >  Development Tools  >  How to add gbk encoding support to Sublime Text

How to add gbk encoding support to Sublime Text

藏色散人
藏色散人forward
2021-05-27 15:52:0216025browse

The following tutorial column from sublime will show you how to add gbk encoding support to Sublime Text. I hope it will be helpful to friends who need it!

##Sublime Text does not support GBK by default, but we can make it support it by installing a plug-in.

First we need to install Package Control. The new version of Sublime (version: 3.1.1) supports installation through Tools.

How to add gbk encoding support to Sublime Text Don’t worry if your Sublime does not have this option. We can install it in another way, which will not be described in detail here. Please refer to the official tutorial for the detailed process.
When we see the following interface, it proves that the installation has been successful.

How to add gbk encoding support to Sublime Text Then we click Package Control, find and click install Package, as shown in the figure below

How to add gbk encoding support to Sublime Text Enter convert in the pop-up search box, find convertToUTF8, click and install.

How to add gbk encoding support to Sublime Text

At this point we click File and find two more options: Set File Encoding to and Reload with Encoding.


How to add gbk encoding support to Sublime Text If you are a Linux system, if we want to save the file as GBK and still cannot do it, the following prompt will appear.

How to add gbk encoding support to Sublime Text In fact, it is mentioned in the plug-in documentation that we need to download Codecs33. The steps are the same as downloading convertToUTF8 just now.

How to add gbk encoding support to Sublime Text After the installation is complete, restart Sublime and this function will be available (if you do not restart, the save will still fail).

The above is the detailed content of How to add gbk encoding support to Sublime Text. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete