[Advanced-java] Files with scandic letters in their names
Panos Konstantinidis
girionis at yahoo.com
Tue Jul 8 11:21:54 2003
Try to use the unicode representation of the
chararacters. Not sure if this will work but it might
be worth a shot. Btw unicode does work for package
names or variable names. If you do:
package mypackage.3letters;
does not work but if you do:
package mypackage.\u0012letters (or whatever the 3 is
in unicode, I do not remember by heart) it will work.
For a complete list of unicode characters have a
look here:
http://www.unicode.org/charts/
--- Jukka Sundberg <jukka@citrus.fi> wrote:
> Hi,
>
> Java doesn't seem to recognize files with scandic
> letters in their
> names, e.g.
>
> File file = new
> File("c:\\projects\\test\\ääääööö.txt");
> if (file.isFile() == false) {
> System.out.println("THIS IS NOT FILE");
> }
>
> Outcome is always "THIS IS NOT FILE".
>
> But if rename the file as "aaaaooo.txt" everything
> works fine.
>
> Does anyone know how to fix this.
>
> Jukka
>
> _______________________________________________
> Advanced-java mailing list
> Advanced-java@lists.xcf.berkeley.edu
>
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com