Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions HTMLTestRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,13 +774,13 @@ def _generate_report_test(self, rows, cid, tid, n, t, o, e):
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('latin-1')
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('latin-1')
ue = e.decode('utf-8')
else:
ue = e

Expand Down
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ It generates easy to use HTML test reports. HTMLTestRunner is released under a
BSD style license.

Only a single file module HTMLTestRunner.py is needed to generate your report.

Additions:
Change encoding type latin-1 to utf-8, When display garbled characters that include Chinese characters in test report.