Skip to content

Commit 8b04f84

Browse files
authored
fix: encoding error after brand new installation (#654) #none
fix: encoding error after brand new installation
1 parent 647d0a4 commit 8b04f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/ktem/ktem/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self):
5050
with (dir_assets / "js" / "main.js").open() as fi:
5151
self._js = fi.read()
5252
self._js = self._js.replace("KH_APP_VERSION", self.app_version)
53-
with (dir_assets / "js" / "pdf_viewer.js").open() as fi:
53+
with (dir_assets / "js" / "pdf_viewer.js").open(encoding="utf-8") as fi:
5454
self._pdf_view_js = fi.read()
5555
# workaround for Windows path
5656
pdf_js_dist_dir = str(PDFJS_PREBUILT_DIR).replace("\\", "\\\\")

0 commit comments

Comments
 (0)