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)