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.
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.
Then we click Package Control, find and click install Package, as shown in the figure below
Enter convert in the pop-up search box, find convertToUTF8, click and install.
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.
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.
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!