summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 5cf36242d..9e1c9d354 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -59,7 +59,7 @@ class main(QObject):
lang = parser.xml.elementsByTagName("language").item(0).toElement().text()
translation = gettext.translation("pyLoadGui", join(dirname(__file__), "locale"), languages=[str(lang)])
- translation.install(unicode=(False if sys.stdout.encoding == "ascii" else True))
+ translation.install(unicode=(True if sys.stdout.encoding.lower().startswith("utf") else False))
self.mainWindow = MainWindow()
self.pwWindow = PWInputWindow()