From ae475ebd4eb0ff0e611a84f9a49c3845acf2daa8 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 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()