UnicodeDecodeError : 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)
http://stackoverflow.com/questions/4237898/unicodedecodeerror-ascii-codec-cant-decode-byte-0xe0-in-position-0-ordinal
我用的方法是:
An alternative solution from python issue9291 by Alexandr Zarubkin (me21):
add file named sitecustomize.py in Lib\site-packages folder.
import sys
sys.setdefaultencoding("cp1251")