From ad2b2554c16290e00dcfb12faf4081c21763f478 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Mon, 30 Aug 2021 17:23:19 -0600 Subject: [PATCH] Use UTF-8 encoding when loading languages json Fixes #371 --- app/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 294053c..0c8a7e3 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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(