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

@ -69,6 +69,6 @@ def draw_element(options: argparse.Namespace) -> None:
point.draw_main_shapes(svg)
point.draw_extra_shapes(svg)
point.draw_texts(svg)
with output_file_path.open("w+") as output_file:
with output_file_path.open("w+", encoding="utf-8") as output_file:
svg.write(output_file)
logging.info(f"Element is written to {output_file_path}.")