Home >Development Tools >sublime >Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3
The following tutorial column of sublime will introduce to you how to solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3. I hope it will be helpful to friends in need!
1. Install the package manager Package Control
First install a Package Control package, this is A package used to install other plug-ins. No matter what plug-ins are installed, this package must be installed first.
Official website address: https://packagecontrol.io/installation
After installation, restart Sublime Text 3, and there will be an additional option under the preferences column. Package Control. It is recommended to use the shortcut key Command shift p
to open Package Control.
2. Install ConvertToUTF8 and GBK Encoding Support
After installing Package Control, use Press the ctrl shift p shortcut key to enter the command mode,
enter Install Package, press Enter,
Search in the installation package box that pops up later: ConvertToUTF8
or GBK Encoding Support
, select and click to install. (The author has already installed it, so I can’t see it.)
Restart Sublime Text, close the gbk file, and reopen gbk again The Chinese files will not be garbled.
If you still see no, you can install Codecs33
.
The above is the detailed content of Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3. For more information, please follow other related articles on the PHP Chinese website!