To solve the problem, make sublime text 2 support gb2312 and GBK. The procedure is as follows:
1. Install sublime package control.
Use Ctrl + ~ On sublime text 2 ~ Open the console and enter the followingCode, Sublime text 2 will automatically install package control.
Import urllib2, OS; pF = 'package control. sublime-package '; IPP = sublime. installed_packages_path (); OS. makedirs (IPP) if not OS. path. exists (IPP) else none; 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 ('Please restart sublime text to finish installation ')
2. Restart sublime text 2
3. Press Ctrl + Shift + P to open the command line mode, and enter install package to search for the required package.
4. Generally, "converttoutf8" and "GBK encoding support" are used to read and write files in CJK format.