Sublime text is a very useful text editing software, it is necessary for programmers, but recently found in the Mac side when used, Chinese garbled,
Some of the online solutions, plagiarism serious, did not solve the actual problem, so record their own problem-solving process.
1. Open Sublime Text 3, press windows:ctrl+~;mac:control+~ Open the control line, copy and paste the following Python code, and then enter run.
Import if Else Open (Os.path.join (IPP, PF), ' WB '). Write (by)
2. Restart Sublime Text 3.
3, press windows:ctrl+shift+p;mac:command+shift+p Open the command line, enter the Installpackage, return, and continue typing ConvertToUTF8, enter.
However, it is still an error to open the local file after installation.
The original is missing Codecs, so open command line here--input installPackage---Codecs,
Restart Sublime Text 3, open garbled file press Ctrl+shift+c
Darren
Weibo: @IT_ Siege Division
GitHub: @Darren90
Source: http://www.cnblogs.com/fengtengfei/
Sublime Text 3 garbled