Solve the garbage problem Sublime Text3 Chinese symbols and Chinese display

 Today installed sublime Text3, found that Chinese symbol display is garbled, the beginning thought it was a coding problem, after various attempts, finally found a solution. Solutions are as follows:

 

An installation package manager


  Use Ctrl + ~ shortcut or open commands View-> Show Console menu line, paste the following code

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

 

  Generally no problem, then you can see two Package Control Package Settings menu and under the Preferences menu.

 

Second, install garbage processing plug-ins:

       Shortcut keys ctrl + shift + p, or click Preferences-> Packet Control, enter: install package, Enter, the installation package later in the pop-up search box: ConvertToUTF8 or GBK Support, click to select the installation;

  Re-open the file.

Guess you like

Origin www.cnblogs.com/pychina/p/11141667.html