diff --git a/pylode/profiles/ontpub.py b/pylode/profiles/ontpub.py index de0dcbe..7032e7d 100644 --- a/pylode/profiles/ontpub.py +++ b/pylode/profiles/ontpub.py @@ -146,7 +146,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 956c9cf..acd6f2f 100644 --- a/pylode/profiles/vocpub.py +++ b/pylode/profiles/vocpub.py @@ -149,7 +149,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()