diff --git a/pylode/profiles/ontpub.py b/pylode/profiles/ontpub.py index 19e9f90..9f1d8da 100644 --- a/pylode/profiles/ontpub.py +++ b/pylode/profiles/ontpub.py @@ -136,7 +136,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 ec80c27..ed68fd3 100644 --- a/pylode/profiles/vocpub.py +++ b/pylode/profiles/vocpub.py @@ -139,7 +139,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()