Posted By:
willie_young
Posted On:
Monday, March 14, 2005 11:37 PM
I am trying to set the default charset and encoding in the Linux kernel for Java 1.4 or 1.5 to ISO-8859-1 LANG=en_US and SUPPORTED=en_US:en locale changes in i18n appears NOT to have any effect on the following Java code Current results uname -a results Linux devtj.natis.gov.za 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown System.out.println( System.getProperty("os.name")); Linux System.out.println( System.getProperty("file.encoding")); ANSI_X3.4-1968 System.out.println( (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding()); ASCII
More>>
I am trying to set the default charset and encoding in the Linux kernel for Java 1.4 or 1.5 to ISO-8859-1
LANG=en_US and SUPPORTED=en_US:en locale changes in i18n appears NOT to have any effect on the following Java code
Current results
uname -a results
Linux devtj.natis.gov.za 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
System.out.println( System.getProperty("os.name"));
Linux
System.out.println( System.getProperty("file.encoding"));
ANSI_X3.4-1968
System.out.println( (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding());
ASCII
<<Less