From ae2a98b3bc563e31405fd99febb0cc4ff812ff7d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 12 Oct 2022 20:29:18 +0200 Subject: [PATCH] Fixed unicode problems with windoof --- src/cpl_translation/__init__.py | 4 ++-- src/cpl_translation/cpl-translation.json | 2 +- src/cpl_translation/translation_service.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpl_translation/__init__.py b/src/cpl_translation/__init__.py index e42c7ca5..55aa8347 100644 --- a/src/cpl_translation/__init__.py +++ b/src/cpl_translation/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl_translation' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '2022.10.0' +__version__ = '2022.10.0.post1' from collections import namedtuple @@ -51,4 +51,4 @@ init() # build-ignore-end VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2022', minor='10', micro='0') +version_info = VersionInfo(major='2022', minor='10', micro='0.post1') diff --git a/src/cpl_translation/cpl-translation.json b/src/cpl_translation/cpl-translation.json index c84d7593..ff6a0860 100644 --- a/src/cpl_translation/cpl-translation.json +++ b/src/cpl_translation/cpl-translation.json @@ -4,7 +4,7 @@ "Version": { "Major": "2022", "Minor": "10", - "Micro": "0" + "Micro": "0.post1" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/src/cpl_translation/translation_service.py b/src/cpl_translation/translation_service.py index 4c75eaf4..4e1a26a3 100644 --- a/src/cpl_translation/translation_service.py +++ b/src/cpl_translation/translation_service.py @@ -34,7 +34,7 @@ class TranslationService(TranslationServiceABC): raise FileNotFoundError() file_dict = {} - with open(f'translation/{lang}.json', 'r') as file: + with open(f'translation/{lang}.json', 'r', encoding='utf8') as file: file_dict = json.load(file) file.close()