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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
