diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-06-12 17:49:20 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-06-12 21:34:52 +0200 |
commit | 634bd970013eca90f4b4c1f9044eec8c97ba62c2 (patch) | |
tree | cf308babc695722ab55344bcd27b1b68802ce3f9 /share | |
parent | fa4b9065a8298f546d91fe382b4517fbf30749c1 (diff) |
Explicitly specify encoding when opening text files in Python code
Diffstat (limited to 'share')
-rwxr-xr-x | share/qt/extract_strings_qt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qt/extract_strings_qt.py b/share/qt/extract_strings_qt.py index e8f0820ca8..e908071321 100755 --- a/share/qt/extract_strings_qt.py +++ b/share/qt/extract_strings_qt.py @@ -63,7 +63,7 @@ child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE) messages = parse_po(out.decode('utf-8')) -f = open(OUT_CPP, 'w') +f = open(OUT_CPP, 'w', encoding="utf8") f.write(""" #include <QtGlobal> |