Helpviewer/UrlBar/UrlBar.py

changeset 753
e19a516f0a97
parent 661
f9d49e0c2522
child 791
9ec2ac20e54e
--- a/Helpviewer/UrlBar/UrlBar.py	Tue Dec 14 09:37:17 2010 +0100
+++ b/Helpviewer/UrlBar/UrlBar.py	Tue Dec 14 11:35:28 2010 +0100
@@ -23,6 +23,7 @@
 
 import UI.PixmapCache
 import Preferences
+import Utilities
 
 class UrlBar(E5LineEdit):
     """
@@ -139,9 +140,11 @@
         if ok and self.__browser.url().scheme() == "https":
             sslInfo = self.__browser.page().getSslInfo()
             if sslInfo is not None:
-                org = sslInfo.subjectInfo(QSslCertificate.Organization)
+                org = Utilities.decodeString(
+                    sslInfo.subjectInfo(QSslCertificate.Organization))
                 if org == "":
-                    cn = sslInfo.subjectInfo(QSslCertificate.CommonName)
+                    cn = Utilities.decodeString(
+                        sslInfo.subjectInfo(QSslCertificate.CommonName))
                     if cn != "":
                         org = cn.split(".", 1)[1]
                     if org == "":

eric ide

mercurial