mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Widget builder: explicit encoding for file reading
This commit is contained in:
@@ -115,7 +115,7 @@ def generate_widget_js(lang):
|
|||||||
]
|
]
|
||||||
for fname in files:
|
for fname in files:
|
||||||
f = finders.find(fname)
|
f = finders.find(fname)
|
||||||
with open(f, 'r') as fp:
|
with open(f, 'r', encoding='utf-8') as fp:
|
||||||
code.append(fp.read())
|
code.append(fp.read())
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
|
|||||||
Reference in New Issue
Block a user