From e9a5cc3a997f5c3a60cc1466b28e6a098de21aa4 Mon Sep 17 00:00:00 2001 From: jm Date: Tue, 17 Oct 2023 09:42:41 +0200 Subject: [PATCH] use utf8 by default to avoid basic encoding issues --- filprofiler/_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filprofiler/_report.py b/filprofiler/_report.py index 90a5bdd..f105533 100644 --- a/filprofiler/_report.py +++ b/filprofiler/_report.py @@ -24,7 +24,7 @@ def render_report(output_path: str, now: datetime) -> str: """Write out the HTML index and improve the SVGs.""" index_path = os.path.join(output_path, "index.html") - with open(index_path, "w") as index: + with open(index_path, "w", encoding="utf-8") as index: index.write( """