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')