QUrl driving me nuts
-
Hello Everybody,
I've got a little problem trying to set a QUrl with a "+" sign. The "true" url is http://www.ariva.de/k+s-aktie
As you notice the + is encoded in +. But if you writeQUrl u = QUrl("http://www.ariva.de/k+s-aktie")
then the + is not encoded in "+" and you can't load the page.
And if I write
QUrl u = QUrl::fromEncoded("http://www.ariva.de/k+s-aktie"),
then the + is translated in a "+" sign and the request is made with "http://www.ariva.de/k+s-aktie" which fails (as the first one, logic).
Meaning you can't make a request with a + (because a + is not encoded in + whereas + is decoded with a +).
This is driving me nuts, any help would be greatly welcomed.
-
I actually meant
QUrl u = QUrl::fromEncoded(“http://www.ariva.de/k+s-aktie”)
on the second example, sorry (to make it short, any combination fails)