天天看點

sublime 3中文亂碼問題解決 2019

方法一:

1、

sublime 3中文亂碼問題解決 2019

2、輸入以下資訊回車 會稍微卡一下

sublime 3:

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)
           

sublime 2:

import urllib2,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; 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()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
           

如失效可使用方法二或通路官網 https://packagecontrol.io/installation#st3

3、重新開機sublime 看到如下選項即為成功

sublime 3中文亂碼問題解決 2019

4、點選package control 輸入一下資訊并回車

Install Package
           
sublime 3中文亂碼問題解決 2019
sublime 3中文亂碼問題解決 2019

5、輸入ConvertToUTF8 并選擇-回車

ConvertToUTF8
           

6、重新打開中文亂碼的檔案即可

方法二:

1、下載下傳資源

百度網盤 插件安裝包

提取碼: zwir

csdn的上傳真是迷,檔案一緻就不讓上傳,點選還沒反應。發現一緻了資料庫指向過去不好嗎,使用者還無感,這沒提示沒反應是想咋樣

2、下載下傳的檔案放到%sublime%/Installed Packages 目錄下

3、接方法一第三步往下即可。

繼續閱讀