Special characters and KLauncher
Thomas Zander
zander at kde.org
Mon Oct 8 12:41:06 BST 2007
On Monday 08 October 2007 13:45:59 Rafael Fernández López wrote:
> > QUrl::toEncoded() should be returning ASCII-only characters. Why is
> > fromLatin1() failing? What was the QByteArray that was returned by
> > toEncoded()?
>
> toEncoded() is just wrong (from Qt assistant):
>
> "The user info, path and fragment are all converted to UTF-8, and all
> non-ASCII characters are then percent encoded."
>
> That means that our special characters are killed down by this method and
> we just lose the ability of accessing those files.
More likely is that the original url was not proper utf8 and therefore the ó
was lost in the first step as it was illegal utf8. It should have been
coverted to %f3, naturally.
--
Thomas Zander
-------------- 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/20071008/6843c340/attachment.sig>
More information about the kde-core-devel
mailing list