[Qt-interest] QUrl issue while encoding an already encoded string
Thiago Macieira
thiago at kde.org
Thu May 13 11:51:26 CEST 2010
Em Quinta-feira 13. Maio 2010, às 11.15.33, Mandeep Sandhu escreveu:
> >> My requirement was that I want the complete URL to be encoded as it
> >> should be, except that one of the params is already encoded and should
> >> not be RE-encoded.
> >
> > addEncodedQueryItem
>
> This works.
>
> 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.)
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100513/3751c55f/attachment.bin
More information about the Qt-interest-old
mailing list