Helpviewer/AdBlock/AdBlockSubscription.py

branch
6_0_x
changeset 4330
2c278493b31e
parent 4022
f5f42921717e
child 4333
ec0664f353b3
--- a/Helpviewer/AdBlock/AdBlockSubscription.py	Fri Jul 24 18:44:45 2015 +0200
+++ b/Helpviewer/AdBlock/AdBlockSubscription.py	Sat Jul 25 12:58:42 2015 +0200
@@ -118,7 +118,8 @@
             urlQuery = QUrlQuery(url)
             self.__title = urlQuery.queryItemValue("title")
             self.__enabled = urlQuery.queryItemValue("enabled") != "false"
-            self.__location = QByteArray(urlQuery.queryItemValue("location"))
+            self.__location = QByteArray(urlQuery.queryItemValue("location")
+                .encode("utf-8"))
             
             # Check for required subscription
             self.__requiresLocation = urlQuery.queryItemValue(
@@ -139,7 +140,7 @@
             self.__enabled = QUrl.fromPercentEncoding(
                 url.encodedQueryItemValue("enabled")) != "false"
             self.__location = QByteArray(QUrl.fromPercentEncoding(
-                url.encodedQueryItemValue("location")))
+                url.encodedQueryItemValue("location")).encode("utf-8"))
             
             # Check for required subscription
             self.__requiresLocation = QUrl.fromPercentEncoding(

eric ide

mercurial