Correct Unicode handling across the whole app.

(Copied from Eric4)
This commit is contained in:
Tim Bentley 2009-06-21 08:30:15 +01:00
parent 03904d7502
commit a5d3daa392
1 changed files with 5 additions and 0 deletions

View File

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