Widget builder: explicit encoding for file reading

This commit is contained in:
Raphael Michel
2019-08-16 12:27:13 +02:00
parent 43d3eb3fe2
commit 1693affba4
+1 -1
View File
@@ -115,7 +115,7 @@ def generate_widget_js(lang):
]
for fname in files:
f = finders.find(fname)
with open(f, 'r') as fp:
with open(f, 'r', encoding='utf-8') as fp:
code.append(fp.read())
if settings.DEBUG: