Special characters and KLauncher

Rafael Fernández López ereslibre at kde.org
Mon Oct 8 13:17:10 BST 2007


On Monday 08 October 2007 13:41:06 Thomas Zander wrote:
> 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.

It was, I checked that. The problem is toEncoded() method. But hey, no need to 
even check that, read the documentation... explicitly said as clean water.


Bye,
Rafael Fernández López.
-------------- 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/65662fa4/attachment.sig>


More information about the kde-core-devel mailing list