From a5d3daa392ca2b8a8fc9a1293941e909e9de4299 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 21 Jun 2009 08:30:15 +0100 Subject: [PATCH] Correct Unicode handling across the whole app. (Copied from Eric4) --- openlp.pyw | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openlp.pyw b/openlp.pyw index 250e11f83..33ae56f16 100755 --- a/openlp.pyw +++ b/openlp.pyw @@ -38,6 +38,11 @@ class OpenLP(QtGui.QApplication): log.info(u'Application Loaded') def run(self): + #set the default string encoding + try: + sys.setappdefaultencoding(u'utf-8') + except: + pass #provide a listener for widgets to reqest a screen update. QtCore.QObject.connect(Receiver.get_receiver(), QtCore.SIGNAL(u'openlpprocessevents'), self.processEvents)