From 18fef50de7a88d02f54749368c645fc916d5c6ae Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Thu, 28 Nov 2024 12:28:02 +0300 Subject: [PATCH] Fix run with no-utf8 default codepage --- translation/merge_and_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translation/merge_and_check.py b/translation/merge_and_check.py index 74fbbc3171..c8f19a4525 100644 --- a/translation/merge_and_check.py +++ b/translation/merge_and_check.py @@ -52,7 +52,7 @@ def compareJsonInFolder(path): cwd = os.path.dirname(path) print('compare path', cwd, '\n') - with open(path, 'r') as pf: + with open(path, 'r', encoding="utf-8") as pf: master_dict = json.load(pf) #for root, dirs, files in os.walk(os.path.dirname(path)):