摘要:
使用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 阅读全文
posted @ 2012-12-06 08:56
lepfinder
阅读(4853)
评论(0)
推荐(0)
浙公网安备 33010602011771号