PythonScripter2.7报错ascii codec can't encode characters in position 0-1:ordinal not in range(128)

1. 这是Python 2 mimetypes的bug
2. 需要将Python2.7\lib\mimetypes.py文件中如下片段注释或删除:
try:
ctype = ctype.encode(default_encoding) # omit in 3.x!
except UnicodeEncodeError:
pass
posted @ 2016-09-22 19:13  maxomnis  阅读(337)  评论(0编辑  收藏  举报