From ebde858876b9b315e3696303b5969f9074584189 Mon Sep 17 00:00:00 2001 From: spaceman99 Date: Thu, 5 Dec 2024 13:13:53 +0100 Subject: [PATCH] Update qwc2_viewer.py add Encoding, so Umlauts from a .ui file are correctly read. --- src/qwc2_viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qwc2_viewer.py b/src/qwc2_viewer.py index 5b6ab48..dbf4678 100644 --- a/src/qwc2_viewer.py +++ b/src/qwc2_viewer.py @@ -837,7 +837,7 @@ def translate_designer_form(self, path, lang): # Attempt to load translation file try: - with open(translation_path, 'r') as fh: + with open(full_path, 'r', encoding='utf-8') as fh: translation = fh.read() except: return Response(form, mimetype='text/xml')