F
Fritz Bayer
Hello,
I'm opening a file from my JSP file. If I do not set the encoding to
ISO-8859-1 the file is read in as ascii.
I checked the encoding with:
InputStreamReader fileReader = new InputStreamReader(new
FileInputStream("test.txt"));
tmp = fileReader.getEncoding();
and it clearly says ASCII.
How come that the default encoding of the FileInputStream is set to
ASCII? Shouldn't it be set to the default fileset encoding which is
ISO-8859-1 on my linux box (my System.property of file.encoding is
ISO-8859-15)?
Or is this set somewhere else in the appserver? I'm using jboss 4.0.0
with tomcat 5.0.x integrated.
Fritz
I'm opening a file from my JSP file. If I do not set the encoding to
ISO-8859-1 the file is read in as ascii.
I checked the encoding with:
InputStreamReader fileReader = new InputStreamReader(new
FileInputStream("test.txt"));
tmp = fileReader.getEncoding();
and it clearly says ASCII.
How come that the default encoding of the FileInputStream is set to
ASCII? Shouldn't it be set to the default fileset encoding which is
ISO-8859-1 on my linux box (my System.property of file.encoding is
ISO-8859-15)?
Or is this set somewhere else in the appserver? I'm using jboss 4.0.0
with tomcat 5.0.x integrated.
Fritz