[Gambas-user] How do I fetch a list of files?

Benoit Minisini gambas at ...1...
Tue Mar 1 16:04:00 CET 2005


On Tuesday 01 March 2005 15:31, Oliver Stieber wrote:
> > What do you mean exactly by "it seems broken for
> > UTF-8 filenames" ?
> >
> > Dir() returns all file names in UTF-8 format. But
> > not OPEN - This will change
> > in the next version, where everything should be
> > UTF-8.
>
> well,
> for each file in dir("/home/music")
>
> ....
>
> comes up with the error 'bad
> string conversion'
> for files with UTF8 characters in their names e.g.
> Jean - Michel Jarre - Oxyg<E8>ne
>

A few questions:

Which distribution do you use ?
Which character encoding does your system use ? (type 'locale charmap' in a 
shell)
Which character encoding is used by the file system where your /home/music is 
stored ?

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list