Home > Development Tools > sublime > body text

Solve the problem of Chinese garbled characters in Sublime Text3

藏色散人
Release: 2019-10-28 14:00:38
forward
5925 people have browsed it

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

Solve the problem of Chinese garbled characters in Sublime Text3

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 install GBK The Encoding Support plugin is also available.

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

Sublime Text 3 Introduction:

Sublime Text is a code editor. Also an advanced text editor for HTML and prose. Sublime Text 3 has a beautiful user interface and extraordinary features such as: mini map, multiple selections, Python plugins, code snippets and more. Fully customizable keybindings, menus and toolbars and more. Beautiful user interface and extraordinary functionality, Sublime Text's key features include: spell check, bookmarks, full Python API, Goto functionality, instant project switching, multi-selection , multi-window and so on.

The above is the detailed content of Solve the problem of Chinese garbled characters in Sublime Text3. 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