[Advanced-java] Files with scandic letters in their names

Panos Konstantinidis girionis at yahoo.com
Tue Jul 8 11:30:06 2003


--- Jukka Sundberg <jukka@citrus.fi> wrote:
> Hi,
> 
> Java doesn't seem to recognize files with scandic
> letters in their 
> names, e.g.

  On second thought... this is weird since Java is by
default Unicode. It should have worked. I am doing
heavy XML processing with file names that contain
several non ISO 8859-1 characters and they work fine.

> 
> File file = new
> File("c:\\projects\\test\\ääääööö.txt");
> if (file.isFile() == false) {
> 	System.out.println("THIS IS NOT FILE");
> }
>

  Are you sure that the file you try to access exists?
Try to do a file.exist() and tell us.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com