sublime

解决WIN7下Sublime运行python代码出现的UnicodeEncodeError错误

在win7下安装sublime后,编写python脚本并执行,没有任何反应,ctrl+`打开控制台之后才发现执行程序时出现了错误:

Running python.exe -u E:\文档\test.py
 Traceback (most recent call last):
 File ".\sublime_plugin.py", line 337, in run_
 return self.run(**args)
 File ".\exec.py", line 154, in run
 File ".\exec.py", line 48, in __init__
 File ".\subprocess.py", line 633, in __init__
 File ".\subprocess.py", line 842, in _execute_child
 UnicodeEncodeError: 'ascii' codec can't encode characters in position 17-19: ordinal not in range(128)

阅读更多 »解决WIN7下Sublime运行python代码出现的UnicodeEncodeError错误