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