mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
Specify encoding for HTML report for special characters
This commit is contained in:
@@ -94,6 +94,6 @@ def generate_report(adir="."):
|
|||||||
data["pass_rate"] = round((data["total_passes"] / data["total_steps"]) * 100)
|
data["pass_rate"] = round((data["total_passes"] / data["total_steps"]) * 100)
|
||||||
|
|
||||||
html_report_file = os.path.join(report_dir, "{}.html".format(file_name))
|
html_report_file = os.path.join(report_dir, "{}.html".format(file_name))
|
||||||
with open(html_report_file, "w") as out:
|
with open(html_report_file, "w", encoding="utf-8") as out:
|
||||||
with open(html_template_file) as template:
|
with open(html_template_file) as template:
|
||||||
out.write(pystache.render(template.read(), data))
|
out.write(pystache.render(template.read(), data))
|
||||||
|
|||||||
Reference in New Issue
Block a user