[Qt5-feedback] QUrl (was: QMimeType)

Thiago Macieira thiago at kde.org
Sun Jun 5 15:46:16 CEST 2011


Em Sunday, 5 de June de 2011, às 14:06:20, David Faure escreveu:
> > In my view, QUrl should be modified to use only partially-decoded
> > components and provide a method (toEncoded()) that returns the
> > fully-encoded form for proper network transfer. The partially-decoded
> > form would decode %-encodings that are UTF-8 sequences, including %20
> > to space, but not including delimiter characterrs (so it won't decode
> > %3F to a question mark in a path component, but it would decode it in
> > the query and fragment component).
> 
> OK. That seems to match the "pretty URL" notion from KDE - something that is
> a  bit better human readable, but which is still fully correct and can be
> parsed back as a correct URL again.

Indeed. KDE3's "pretty URL" wasn't reparsable. KDE 4's is a rewritten form 
that is reparsable -- I should know it, I wrote it :) (commit 3898e5fb in 
kdelibs)

But the "toPrettyPercentEncoding" function has a few bugs that need 
correcting. I wouldn't learn those details of URL/URI until later on.

That commit in kdelibs is dated 2007-05-21, whereas my work in QUrl that made 
the parser and encoder fully compliant is dated 2008-11-10.

-- 
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.nokia.com/pipermail/qt5-feedback/attachments/20110605/aadfc78d/attachment.bin 


More information about the Qt5-feedback mailing list