from where java extract the default encoding ?
I tried the following code on 2 plateforms : redhat 4 and centos 5
public class EncodingTest {
    public static void main(String args[]) throws Exception{
    System.out.println(System.getProperty("file.encoding"));
    System.out.println(
               new java.io.OutputStreamWriter(
                              new java.io.ByteArrayOutputStream()).getEncoding()
               );
    }
}
I have two different results,redhat UTF-8 and for centos ASCII. It's the same java installation and version (1.4). I launch java without parameter -Dfile.encoding.
Thanks.
 
     
    