Re: Reading files with scandinavian characters in filename on Mac OS X.
Tore Halset <[email protected]> Sat, 05 Feb 2005 09:04:52 +0100
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
On Feb 5, 2005, at 03:16, Zaphod B wrote: > I have on a UFS partition a directory called char and a file > 3ÅØÆäö.jpg inside this directory. What my app tries to do is to open > an input stream to this file: > > String[] files = directory.list (); Perhaps it would help to not convert til File objects to Strings and then back to File objects? Have you tried to use "File[] files = directory.listFiles();" instead? http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#listFiles() Regards, - Tore.