From bcdf89a04ac3629488e71667d6f2e9a5ba182d85 Mon Sep 17 00:00:00 2001 From: Poruri Sai Rahul Date: Wed, 3 Mar 2021 13:33:18 +0000 Subject: [PATCH] FIX : Set encoding when writing gcbench output (#671) fixes #670 modified: enable/gcbench/publish.py --- enable/gcbench/publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enable/gcbench/publish.py b/enable/gcbench/publish.py index 9e8e55f3a..3e687eb81 100644 --- a/enable/gcbench/publish.py +++ b/enable/gcbench/publish.py @@ -121,7 +121,7 @@ def publish(results, outdir): # Fill out the comparison table and write the summary index comparison_table = _build_comparison_table(backends, comparisons) path = os.path.join(outdir, "index.html") - with open(path, "w") as fp: + with open(path, "w", encoding="utf-8") as fp: fp.write(_INDEX_TEMPLATE.format(comparison_table=comparison_table))