Skip to content

Commit

Permalink
fix: encoding error after brand new installation (#654) #none
Browse files Browse the repository at this point in the history
fix: encoding error after brand new installation
  • Loading branch information
JinkeJ authored Feb 14, 2025
1 parent 647d0a4 commit 8b04f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ktem/ktem/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self):
with (dir_assets / "js" / "main.js").open() as fi:
self._js = fi.read()
self._js = self._js.replace("KH_APP_VERSION", self.app_version)
with (dir_assets / "js" / "pdf_viewer.js").open() as fi:
with (dir_assets / "js" / "pdf_viewer.js").open(encoding="utf-8") as fi:
self._pdf_view_js = fi.read()
# workaround for Windows path
pdf_js_dist_dir = str(PDFJS_PREBUILT_DIR).replace("\\", "\\\\")
Expand Down

0 comments on commit 8b04f84

Please sign in to comment.