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

藏色散人
Release: 2021-04-21 18:49:28
forward
4264 people have browsed it

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template