标签:
2.找到HTMLTestRunner.py源码
定位到如下位置,o.decode(‘latin-1’)编码“latin-1”修改为“utf-8”
if isinstance(o,str): # TODO: some problem with ‘string_escape‘: it escape \n and mess up formating # uo = unicode(o.encode(‘string_escape‘)) uo = o.decode(‘utf-8‘) else: uo = o if isinstance(e,str): # TODO: some problem with ‘string_escape‘: it escape \n and mess up formating # ue = unicode(e.encode(‘string_escape‘)) ue = e.decode(‘utf-8‘) else: ue = e
标签:
原文地址:http://www.cnblogs.com/saryli/p/5787421.html