--nextPart6793705.RtmeMnUOME Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On segunda-feira, 13 de agosto de 2012 14.28.02, Martin Koller wrote: > Hi, > (using 4.9.0) > > when using konqueror and typing "man:" it starts to list possible entries > which the kio_man slave generates. However, konqueror displays percent > encoded URLs, e.g. "man:%281%29/" instead of "man:(1)/" kio_man creates the > KIO::UDSEntry as follows: > > QString name = "man:/(" + *it + ')'; > uds_entry.insert( KIO::UDSEntry::UDS_NAME, sectionName( *it ) ); > uds_entry.insert( KIO::UDSEntry::UDS_URL, name ); > > (sectionName(...) delivers a human readable text) > > What I do not find in the KIO::UDSEntry documentation is if the URL should > use percent encoded strings or not. However doing a simple test where I > explicitely use QString name = "man:/%28" + *it + "%29"; does not work > either. That's not a decision of UDSEntry. That's a decision of who's displaying the URL. The two URLs are equivalent, so there's nothing wrong with the encoding. It's just a matter of whether konqueror decides to decode the parentheses. > Is this a general problem in konqueror (or the combobox it uses or I don't > know where in kdelibs) or do I have to change something in kio_man ? It's not a problem. The behaviour you're describing is "general" though. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --nextPart6793705.RtmeMnUOME Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iD8DBQBQKQlKM/XwBW70U1gRArYAAJ9Pxr9OG3VYNacv3skuhjKml7R5HgCfYGFb lVbAgCqAjcRvvaBQDxRmbKE= =24Yp -----END PGP SIGNATURE----- --nextPart6793705.RtmeMnUOME--