Skip to content

Commit db85912

Browse files
Update qwc2_viewer.py (#30)
add Encoding, so Umlauts from a .ui file are correctly read.
1 parent f0a89a0 commit db85912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qwc2_viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ def translate_designer_form(self, path, lang):
837837

838838
# Attempt to load translation file
839839
try:
840-
with open(translation_path, 'r') as fh:
840+
with open(full_path, 'r', encoding='utf-8') as fh:
841841
translation = fh.read()
842842
except:
843843
return Response(form, mimetype='text/xml')

0 commit comments

Comments
 (0)