[Interest] Difference between QUrl::fromEncoded and QUrl::fromPercentEncoding ?

Thiago Macieira thiago.macieira at intel.com
Wed Aug 14 09:30:19 CEST 2013


On quarta-feira, 14 de agosto de 2013 12:53:43, Mandeep Sandhu wrote:
> A Url like the one in this post is quite possible if it came as part of
> another url (eg: a url encoded as a parameter).

Indeed. But note what you said: it's encoded as a parameter. It's the 
transport.

Another transport could be base64. E.g.:

	http://example.com
		=>
	aHR0cDovL2V4YW1wbGUuY29t
		=>
	http://some.other,url/?q=aHR0cDovL2V4YW1wbGUuY29t

It's your responsibility to know what the transport encoding is and undo it. 
Once you've got the actual URL, you can pass to QUrl.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130814/4eb3180e/attachment.sig>


More information about the Interest mailing list