How to solve the problem that Sublime Text 3 cannot display Chinese correctly
When using Sublime Text 3 on Windows, I found that after some txt text was opened, the Chinese characters were garbled.
Resolution steps: (close qq, Sogou and other software, there will be shortcut key conflicts)
In Sublime Text, press ctrl+ `to open Console, and enter the following code at once:
Import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path (); urllib.request.install_opener (urllib.request.build_opener (urllib.request.ProxyHandler (); open (os.path.join (ipp, pf),' wb') .write (urllib.request.urlopen ('http://sublime.wbond.net/' + pf.replace ('','% 20')). Read ())
This way Sublime Text will install the Package Control we need. Otherwise, Package will not be found later.
Restart Sublime Text.
In Sublime Text, press Ctrl+Shift+P to open the command line mode, type the Install Package keyword, and then click the first item in the drop-down menu that automatically appears: Package Control: Install Package.
At this point you will see an = sign in the lower left corner to move back, and after a while, a drop-down menu will pop up again under the command line. Enter "ConvertToUTF8" or "GBK Encoding Support" to select a match. Chinese characters can be displayed normally.