摘要:
使用tornado 处理静态文件时出现了如下的错误UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 108: ordinal not in range(128) python是使用ascii作为默认编码,可以通过修改python/lib/site.py进行修改,如下所示:def setencoding(): """Set the string encoding used by the Unicode implementation. The default 阅读全文