Home >Development Tools >sublime >Solve the problem of Chinese garbled characters in Sublime Text3
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!
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).
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!