From 23654ba8032639fbb48189c3f4f576e278177567 Mon Sep 17 00:00:00 2001 From: Poruri Sai Rahul Date: Thu, 18 Mar 2021 13:40:43 +0530 Subject: [PATCH] FIX : Set encoding when saving svg file the failure was observed when running enable.gcbench on windows modified: kiva/svg.py --- kiva/svg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiva/svg.py b/kiva/svg.py index 5183e85c6..6980f4aef 100644 --- a/kiva/svg.py +++ b/kiva/svg.py @@ -161,7 +161,7 @@ def height(self): return self.size[1] def save(self, filename, file_format=None, pil_options=None): - with open(filename, "w") as f: + with open(filename, "w", encoding="utf-8") as f: ext = os.path.splitext(filename)[1] if ext == ".svg": template = xmltemplate