diff --git a/pylode/profiles/ontpub.py b/pylode/profiles/ontpub.py index 3109a010..ab8c7c7e 100644 --- a/pylode/profiles/ontpub.py +++ b/pylode/profiles/ontpub.py @@ -142,7 +142,7 @@ def make_html(self, destination: Path = None, include_css: bool = True): self._make_body() if destination is not None: - open(destination, "w").write(self.doc.render()) + open(destination, "w", encoding="utf8").write(self.doc.render()) else: return self.doc.render() diff --git a/pylode/profiles/vocpub.py b/pylode/profiles/vocpub.py index 00fbcae3..f0906bbb 100644 --- a/pylode/profiles/vocpub.py +++ b/pylode/profiles/vocpub.py @@ -145,7 +145,7 @@ def make_html(self, destination: Path = None, include_css: bool = True): self._make_body() if destination is not None: - open(destination, "w").write(self.doc.render()) + open(destination, "w", encoding="utf8").write(self.doc.render()) else: return self.doc.render()