Change default Unicode handling

bzr-revno: 472
This commit is contained in:
Tim Bentley 2009-06-21 13:58:06 +01:00
commit 2ea0a0ee26
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)