forked from openlp/openlp
Change default Unicode handling
bzr-revno: 472
This commit is contained in:
commit
2ea0a0ee26
@ -38,6 +38,11 @@ class OpenLP(QtGui.QApplication):
|
|||||||
log.info(u'Application Loaded')
|
log.info(u'Application Loaded')
|
||||||
|
|
||||||
def run(self):
|
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.
|
#provide a listener for widgets to reqest a screen update.
|
||||||
QtCore.QObject.connect(Receiver.get_receiver(),
|
QtCore.QObject.connect(Receiver.get_receiver(),
|
||||||
QtCore.SIGNAL(u'openlpprocessevents'), self.processEvents)
|
QtCore.SIGNAL(u'openlpprocessevents'), self.processEvents)
|
||||||
|
Loading…
Reference in New Issue
Block a user