Home >Development Tools >sublime >Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

藏色散人
藏色散人forward
2021-04-21 11:20:234265browse

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

Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

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.
Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

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,
Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

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.)
Solve the problem of Chinese garbled characters when opening GBK encoded files in Sublime3

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!

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