Fixed a few issues in E5NetworkMonitor.py.

Sat, 04 Sep 2010 12:26:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 04 Sep 2010 12:26:45 +0200
changeset 556
05b73ee2ae42
parent 555
3c3836000c07
child 558
61f00df934e7

Fixed a few issues in E5NetworkMonitor.py.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
E5Network/E5NetworkMonitor.py file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/E5Network/E5NetworkMonitor.py	Fri Sep 03 20:15:24 2010 +0200
+++ b/E5Network/E5NetworkMonitor.py	Sat Sep 04 12:26:45 2010 +0200
@@ -9,7 +9,7 @@
 
 from PyQt4.QtGui import *
 from PyQt4.QtCore import *
-from PyQt4.QtNetwork import QNetworkRequest, QNetworkAccessManager
+from PyQt4.QtNetwork import QNetworkRequest, QNetworkReply, QNetworkAccessManager
 
 import UI.PixmapCache
 
@@ -152,10 +152,10 @@
             self.__requestHeaders.insertRows(0, 1, QModelIndex())
             self.__requestHeaders.setData(
                 self.__requestHeaders.index(0, 0), 
-                header)
+                str(header, "utf-8"))
             self.__requestHeaders.setData(
                 self.__requestHeaders.index(0, 1), 
-                req.rawHeader(header))
+                str(req.rawHeader(header), "utf-8"))
             self.__requestHeaders.item(0, 0).setFlags(
                 Qt.ItemIsSelectable | Qt.ItemIsEnabled)
             self.__requestHeaders.item(0, 1).setFlags(
@@ -273,7 +273,8 @@
         
         # save the reply header data
         for header in reply.rawHeaderList():
-            self.requests[offset].replyHeaders.append((header, reply.rawHeader(header)))
+            self.requests[offset].replyHeaders.append((
+                str(header, "utf-8"), str(reply.rawHeader(header), "utf-8")))
         
         # save reply info to be displayed
         status = reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) or 0

eric ide

mercurial