sublime 3 python build "Decode error - output not utf-8"

原因:sublime调用windows cmd,字符集没弄对导致的

解决:没有全局搜索,没有找到网上说的自带的python.build文件。所以用了另一种方法:

tools > build system > new build system

{
"shell_cmd": "python -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"LANG": "tr_TR.UTF-8", "PYTHONIOENCODING": "UTF-8"}
}

biang!

posted on 2014-04-10 21:59  ilovegn  阅读(386)  评论(0)    收藏  举报

导航