Skip to content

Commit

Permalink
Specify encoding (utf-8) in importer.py (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin-Xu authored Dec 31, 2024
1 parent 5a3cd1b commit 5c2a8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _fetchWebpage(self, url):
return self._cleanWebpage(html, url)

def _fetchLocalpage(self, filepath):
with open(filepath, "r") as f:
with open(filepath, "r", encoding="utf-8") as f:
html = f.read()
url = urlunsplit(("file", "", filepath, None, None))
return self._cleanWebpage(html, url, True)
Expand Down

0 comments on commit 5c2a8ce

Please sign in to comment.