← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~trb143/openlp/servicing2 into lp:openlp

 

Tim Bentley has proposed merging lp:~trb143/openlp/servicing2 into lp:openlp.

Requested reviews:
    openlp.org Core (openlp-core)

Corrects the default unicode handing in the app.
Eric4 uses this which explains why I did not see the errors last week.
They appear when outside Eric until this line is included.
-- 
https://code.launchpad.net/~trb143/openlp/servicing2/+merge/7730
Your team openlp.org Core is subscribed to branch lp:openlp.
=== modified file 'openlp.pyw'
--- openlp.pyw	2009-06-20 10:44:12 +0000
+++ openlp.pyw	2009-06-21 07:30:15 +0000
@@ -38,6 +38,11 @@
     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)


Follow ups