Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit cada9c9

Browse files
committed
Specify encoding for HTML report for special characters
1 parent 860d795 commit cada9c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifcbimtester/bimtester/reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ def generate_report(adir="."):
9494
data["pass_rate"] = round((data["total_passes"] / data["total_steps"]) * 100)
9595

9696
html_report_file = os.path.join(report_dir, "{}.html".format(file_name))
97-
with open(html_report_file, "w") as out:
97+
with open(html_report_file, "w", encoding="utf-8") as out:
9898
with open(html_template_file) as template:
9999
out.write(pystache.render(template.read(), data))

0 commit comments

Comments
 (0)