Skip to content

Commit 4d2ccb0

Browse files
committed
Encoding in open()
1 parent 87f530c commit 4d2ccb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

url_modules/main/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run(request, params):
9595
_html_path = _plugin.webFSPath(os.path.join("html", _plugin_name+".html"))
9696

9797
if os.path.exists(_html_path):
98-
fd = open(_html_path, 'r')
98+
fd = open(_html_path, "r", encoding="utf-8")
9999
_plugin_html = fd.read()
100100
fd.close()
101101

0 commit comments

Comments
 (0)