encoded urls in KUrlNavigator

Thiago Macieira thiago at kde.org
Fri Jul 18 17:57:56 BST 2008


Sebastian Trüg wrote:
>> Why do you need to encode the slashes? QUrl will convert them back to
>> real slashes.
>
>because otherwise kio will interpret the slashes as path separators
> instead of part of the name/query.

If you use %2F in the path, it is a path separator.

%2F *is* a slash.

%3F is a question mark, but it gets encoded because the literal question 
mark is used to indicate the beginning of the query.

The slash, however, has no special meaning. So it gets converted back to 
the literal '/'.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080718/fa9c7828/attachment.sig>


More information about the kde-core-devel mailing list