Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py	Sat Jan 02 15:11:35 2010 +0000
@@ -12,7 +12,9 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
-from Ui_EricdocExecDialog import Ui_EricdocExecDialog
+from .Ui_EricdocExecDialog import Ui_EricdocExecDialog
+
+import Preferences
 
 class EricdocExecDialog(QDialog, Ui_EricdocExecDialog):
     """
@@ -132,7 +134,9 @@
         self.process.setReadChannel(QProcess.StandardOutput)
         
         while self.process.canReadLine():
-            s = unicode(self.process.readLine())
+            s = str(self.process.readLine(), 
+                    Preferences.getSystem("IOEncoding"), 
+                    'replace')
             self.contents.insertPlainText(s)
             self.contents.ensureCursorVisible()
         
@@ -147,6 +151,8 @@
         
         while self.process.canReadLine():
             self.errorGroup.show()
-            s = unicode(self.process.readLine())
+            s = str(self.process.readLine(), 
+                    Preferences.getSystem("IOEncoding"), 
+                    'replace')
             self.errors.insertPlainText(s)
-            self.errors.ensureCursorVisible()
+            self.errors.ensureCursorVisible()
\ No newline at end of file

eric ide

mercurial