Issue #89: fix encoding.

This commit is contained in:
Sergey Vartanov 2021-09-25 09:12:13 +03:00
parent 067b815100
commit c0b4d35573
11 changed files with 18 additions and 16 deletions

View file

@ -140,7 +140,7 @@ class SVGDrawing(Drawing):
def write(self) -> None:
"""Write image to the SVG file."""
with self.file_path.open("w+") as output_file:
with self.file_path.open("w+", encoding="utf-8") as output_file:
self.image.write(output_file)