From 522b27411f934661ba46f70f699f450871a0d14d 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 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()