From 7364ddb061beff4ffb9b05c9735a3c52cc42d724 Mon Sep 17 00:00:00 2001 From: Robin Vobruba Date: Mon, 29 Jan 2024 17:16:24 +0100 Subject: [PATCH] Writes OWL and SKOS as UTF-8 [fix #198] --- pylode/profiles/ontpub.py | 2 +- pylode/profiles/vocpub.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()