[Bug 68744] Problems with accented characters in file names

David Faure faure at kde.org
Wed Dec 3 19:13:44 GMT 2003


On Wednesday 03 December 2003 02:56, Thiago Macieira wrote:
> David Faure wrote:
> >That's about the char*->QString conversion, which should be done with
> >QFile::{de|en}codeName.
> >
> >However the code we're talking about is QString->KURL conversion,
> >which is something else, isn't it?
> 
> It is, but not entirely. Suppose I have a locale of ISO-8859-1, but I am using 
> KDE_UTF8_FILENAMES=true. In that case, I can have a file 
> called /home/thiago/ÔéČuro.txt.
> 
> Anyways, the filename is properly decoded into a Unicode QString. But when you 
> set it in the query

Why would you set a filename in a query? That's what I'm pointing out here.
Either this is a filename (and it was encoded as such already, and KURL::path()
will work, right?)
or it's a user-typed string which the ikws filter decides is a query for e.g. google,
and in that case it's up to that filter to encode the query the way it wants,
for instance using UTF8.

But we're not sending filenames to google, so there's no relation between
KDE_UTF8_FILENAMES (i.e. QFile::encodeName) and a KURL query at all. 

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list