[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Does KIO::NetAccess accept non latin1 filenames?
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-06-25 5:32:35
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 24 June 2002 23:08, Gioele Barabucci wrote:
> On Monday 24 June 2002 17:54, Waldo Bastian wrote:
> > > encodeName trasforms "aé.tar.gz" into "a?tar.gz" ("é." are composed in
> > > "?")..
> >
> > Filename are encoded according to your locale setting. If you use a latin1
> > locale you can't have filenames with non-latin1 characters in it.
> I don't think I use latin1, I use <the one suitable for italian accented 
> chars>. 
That's latin1 ;-)

(Don't confuse with ASCII, which is 7 bit, i.e. no accents.
Latin1 is the 8 bit encoding that includes the french/italian/spanish/...
accentuated latters).

> I did this in konsole:
> mv regularfile.tar.gz aé.tar.gz ("é" is on my keyboard).
> ls displays it fine, Konqueror does the same, I can even rename the file in 
> konqueror and still both ls and Konqui display the "é".

Yup, all of that works fine, I've been testing that for long ;)

> so encodeName() should return "é"

And it does. Warning about one thing: when playing with encoding stuff,
don't even trust the debug output - I mean, a variable could have the right
value, but when displaying it to the console, some wrong encoding might happen.

Please give more code extracts, so that I can find the bug ;)

> > That is, unless you switch to utf8 filenames.
> How can I do this?
(I think this is unrelated to your problem)

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is coming very shortly...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9GAB072KcVAmwbhARAnOLAKCCHyAKWbCn2ZDnNad9ly1pFwCPdQCdGcrS
b2uNjtATfChRaX0vovbAf60=
=z7xr
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic