From 778f2d0368a449b8edb3bb1182a914f1a6f61bd2 Mon Sep 17 00:00:00 2001 From: Poruri Sai Rahul Date: Wed, 3 Mar 2021 18:41:43 +0530 Subject: [PATCH] FIX : Set encoding when writing gcbench output 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 4163489de..3ea9d06b4 100644 --- a/enable/gcbench/publish.py +++ b/enable/gcbench/publish.py @@ -99,7 +99,7 @@ def publish(results, outdir): 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))