Home > Development Tools > sublime > body text

Sublime Text3 Chinese garbled problem

藏色散人
Release: 2019-10-10 13:57:58
forward
3142 people have browsed it

The following column sublime introductory tutorial will introduce to you the problem of Chinese garbled characters in Sublime Text3. I hope it will be helpful to friends in need!

Sublime Text3 Chinese garbled problem

Causes of garbled characters:

Mac OS X is developed based on Unix system and uses UTF-8 encoding by default. Unix and Linux do not support the ANSI (GBK) format (ANSI is the default Chinese simplified encoding format under Windows systems) and GB2312 format by default. At the same time, the default encoding format of Sublime Text is UTF-8, so garbled characters are inevitable.

The solution is to install a plug-in that supports displaying Chinese

1.Command shift p and enter inp to select install package for execution, then enter ConverToUTF8 to select this plug-in for installation, or you can install the GBK Encoding Support plug-in.

2. If only the above plug-in is installed, but the document encoded in the Windows system is opened, the following error will be reported. To support the default ANSI Chinese encoding on the Windows platform, you need to install the Codecs33 plug-in.

When opening a file on Windows platform, the following error will be reported.

File: /Users/xxx/xxx(文件的路径)
Encoding: GB2312
Error: Codecs missing
Please install Codecs33 plugin (https://github.com/seanliang/Codecs33/tree/osx).
Copy after login

The above is the detailed content of Sublime Text3 Chinese garbled problem. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:juejin.im
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