--nextPart2337417.Pl0bRKOTqt Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dirk Mueller wrote: >On Tuesday 14 November 2006 07:32, Alexander Neundorf wrote: >> > >url.prettyURL().mid(url.prettyURL().findRev('/')); or something >> > > like this ? >> >> I need only the filename part. > >can you try KURL::encode_string (or something like that on the > filename() ? I don't think you should do that. That would create something like file%0A.php, which is not a newline. A=20 file name is not a URL, so percent-encoding doesn't apply. Maybe you should instead replace \n with QChar::replacement to indicate "a= =20 character that couldn't be displayed". =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart2337417.Pl0bRKOTqt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFWchDM/XwBW70U1gRAh+cAJ47gAOkbJm14Y+WIXHyVdI/rI/5MQCeMvRw NF/P4GzU/MflJUXW//hyU4o= =thsv -----END PGP SIGNATURE----- --nextPart2337417.Pl0bRKOTqt--