From 3e058cf78e568f501ca2b5c41cac5b94a25b743a Mon Sep 17 00:00:00 2001 From: ReinierH Date: Thu, 7 Mar 2019 12:47:36 +0100 Subject: [PATCH] added explicit encoding to open call --- brother_ql_web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brother_ql_web.py b/brother_ql_web.py index 7f41173..17e7abc 100755 --- a/brother_ql_web.py +++ b/brother_ql_web.py @@ -22,10 +22,10 @@ logger = logging.getLogger(__name__) LABEL_SIZES = [ (name, label_type_specs[name]['name']) for name in label_sizes] try: - with open('config.json') as fh: + with open('config.json', encoding='utf-8') as fh: CONFIG = json.load(fh) except FileNotFoundError as e: - with open('config.example.json') as fh: + with open('config.example.json', encoding='utf-8') as fh: CONFIG = json.load(fh)