Use UTF-8 encoding when loading languages json

Fixes #371
main
Ben Busby 2021-08-30 17:23:19 -06:00
parent 9320d8e230
commit ad2b2554c1
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ app.config['BUILD_FOLDER'] = os.path.join(
app.config['STATIC_FOLDER'], 'build')
app.config['CACHE_BUSTING_MAP'] = {}
app.config['LANGUAGES'] = json.load(open(
os.path.join(app.config['STATIC_FOLDER'], 'settings/languages.json')))
os.path.join(app.config['STATIC_FOLDER'], 'settings/languages.json'),
encoding='utf-8'))
app.config['COUNTRIES'] = json.load(open(
os.path.join(app.config['STATIC_FOLDER'], 'settings/countries.json')))
app.config['TRANSLATIONS'] = json.load(open(