Skip to content

Commit

Permalink
FIX : Set encoding when saving svg file (#735)
Browse files Browse the repository at this point in the history
the failure was observed when running enable.gcbench on windows

	modified:   kiva/svg.py
  • Loading branch information
Poruri Sai Rahul authored and jwiggins committed Mar 24, 2021
1 parent 333326a commit bbe3441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiva/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbe3441

Please sign in to comment.