Widget builder: explicit encoding for file reading

This commit is contained in:
Raphael Michel
2019-08-08 19:43:44 +02:00
parent 191729c07a
commit 547f71aac6

View File

@@ -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: