From 439ed00a20f335ccb5f803ad050182a11882f990 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 26 Nov 2020 13:35:10 +0100 Subject: [PATCH] Add utf-8 mode to translation checker script --- tools/check_translate_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_translate_files.py b/tools/check_translate_files.py index b9f7329ed..445dc9151 100644 --- a/tools/check_translate_files.py +++ b/tools/check_translate_files.py @@ -17,7 +17,7 @@ code_lang = args.language def LoadTranslateFile(filename, direction): result = set() - file = open(filename, 'r') + file = open(filename, 'r', encoding="utf-8") for line in file: line = line.strip() if line.startswith('#') or line == '':