【python-HTMLTestRunner】生成HTMLTestRunner报告报错:
ERROR 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
【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')

问题解决

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-12-05
猜你喜欢
  • 2022-01-05
  • 2022-01-04
  • 2021-12-25
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-07-02
相关资源
相似解决方案