Skip to content

Commit

Permalink
Writes OWL and SKOS as UTF-8 [fix RDFLib#198]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed May 18, 2024
1 parent 9683238 commit d2e5cb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylode/profiles/ontpub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion pylode/profiles/vocpub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d2e5cb8

Please sign in to comment.