【python-HTMLTestRunner】生成HTMLTestRunner报告报错:
ERROR 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
需要在HTMLTestRunner开头转化utf-8的代码
import sys
reload(sys)
sys.setdefaultencoding('utf8') 问题解决
相关文章
- django startproject xxx:报错UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 13: ordinal not in range(128)
- 解决UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe5 in position 108: ordinal not in range(128
- python2.7 报错(UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128))