To garbled the problem, the key is to let sublime Text 2 support GB2312 and GBK. The steps are as follows:
1. Install Sublime package Control.
Open the console with ctrl+~ on Sublime text 2 and enter the following code in it, Sublime text 2 will automatically install the package control.
1. Enter the code
Import Urllib2,os; pf='Package Control.sublime-package'; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP)ifNot Os.path.exists (IPP)ElseNone; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); Open (Os.path.join (IPP,PF),'WB'). Write (Urllib2.urlopen ('http://sublime.wbond.net/'+pf.replace (' ','%20'). read ()); Print'Restart Sublime Text to finish installation')
2. Restart Sublime Text 2
3. Then use Ctrl+shift+p to open the command line mode and enter the install package inside to search for the required package.
4. "ConvertToUTF8" and "GBK Encoding support" are generally used to read and write files in CJK format normally.
Sublime Text 2 Chinese garbled problem solving