UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
To solve it,
Edit C:\Python27\Lib\mimetypes.py this file:
Add these codes
if sys.getdefaultencoding() != 'gbk':
reload(sys)
sys.setdefaultencoding('gbk')
before the following line
default_encoding = sys.getdefaultencoding()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
To solve it, Edit C:\Python27\Lib\mimetypes.py this file: Add these codes if sys.getdefaultencoding() != 'gbk': reload(sys) sys.setdefaultencoding('gbk') before the following line default_encoding = sys.getdefaultencoding()