[Qt-interest] QUrl issue while encoding an already encoded string
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Thu May 13 13:32:15 CEST 2010
>> But why is QUrl converting %2F to %252F contrary to the documentation
>> of TolerantMode parsing?
>
> Because you used the wrong function. If you have encoded data, you must use
> the functions with "encoded" in the name (fromEncoded, toEncoded,
> addEncodedQueryItem, encodedPath, etc.)
If I simply create a url like:
QUrl myUrl(<String with some pre-encoded param values>, QUrl::TolerantMode);
I'd expect QUrl to NOT touch the encoded part, as stated in the doc.
This seems like a bug.
-mandeep
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Senior Product Manager - Nokia, Qt Development Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
More information about the Qt-interest-old
mailing list