用sublime text 2 build python 遇到中文的问题

今天尝试用sublime text 2 build python文件。没想到控制台给我报这个错误:[Decode error - output not utf-8]

解决方案:

在插件的文件夹下找到python文件夹,进去、修改Python.sublime-build文件。我的操作系统为win7。

  "cmd": ["python""-u""$file"], 
  "file_regex""^[ ]*File \"(...*?)\", line ([0-9]*)"
  "selector""source.python"
  "encoding""cp936" 
}

你可能感兴趣的:(用sublime text 2 build python 遇到中文的问题)