From 4a49801a01d9a4edbef62e3152bfa02f74894b4f Mon Sep 17 00:00:00 2001 From: Stefa168 Date: Thu, 18 Feb 2021 23:46:29 +0100 Subject: [PATCH] Fixed errors related to Unicode characters --- pylode/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylode/common.py b/pylode/common.py index ce9c687..67c3876 100644 --- a/pylode/common.py +++ b/pylode/common.py @@ -175,7 +175,7 @@ def document(self, destination=None): if destination is not None: doc = p.generate_document() try: - with open(destination, "w") as f: + with open(destination, "w", encoding="utf8") as f: f.write(doc) except Exception as e: print(e)