diff --git a/docker/test/performance-comparison/report.py b/docker/test/performance-comparison/report.py index eb110e0ab32..4cff6b41949 100755 --- a/docker/test/performance-comparison/report.py +++ b/docker/test/performance-comparison/report.py @@ -233,6 +233,10 @@ def tsvRows(n): for row in csv.reader(fd, delimiter="\t", quoting=csv.QUOTE_NONE): new_row = [] for e in row: + # The first one .encode('utf-8').decode('unicode-escape') decodes the escape characters from the strings. + # The second one (encode('latin1').decode('utf-8')) fixes the changes with unicode vs utf-8 chars, so + # 'Чем зÐ�нимаеÑ�ЬÑ�Ñ�' is transformed back into 'Чем зАнимаешЬся'. + new_row.append(e.encode('utf-8').decode('unicode-escape').encode('latin1').decode('utf-8')) result.append(new_row) return result