[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: branches/KDE/3.5/kdelibs/kio/kio
From: Thiago Macieira <thiago () kde ! org>
Date: 2006-11-14 13:44:16
Message-ID: 200611141444.35918.thiago () kde ! org
[Download RAW message or body]
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
file name is not a URL, so percent-encoding doesn't apply.
Maybe you should instead replace \n with QChar::replacement to indicate "a
character that couldn't be displayed".
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic