SublimeTest出现乱码!
- 使用Ctrl+`快捷键或者通过View->Show Console菜单打开命令行,粘贴如下代码
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(' ',' ')).read())
- 顺利安装的话,在Preferences中会出现Pack Control
- 点击Pack Control,输入:install package,回车,在稍后弹出的安装包框中搜索:ConvertToUTF8或者GBK Encoding Support,选择点击安装;
待续….