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 Jan 29, 2024
1 parent a2485cb commit ae475eb
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 @@ -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()

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

Expand Down

0 comments on commit ae475eb

Please sign in to comment.