M
Mario Maestro
Hi,
I recently changed the hosting for my website (from Linux to Linux) and
now I'm experiencing some trouble with java.io.FileReader and
java.io.FileWriter: their getEncoding() method returns ASCII (returned
ISO8859_1 on the previuos host). I've set -Dfile.encoding=ISO-8859-1 but
nothing has changed, except that
javax.mail.internet.MimeUtility.getDefaultJavaCharset() effectively
returns ISO-8859-1.
Does anyone know how the default encoding is selected? I report some
system properties:
file.encoding.pkg: sun.io
user.country: US
java.runtime.version: 1.4.2_04-b05
os.version: 2.4.27
user.timezone: America/New_York
file.encoding: ISO-8859-1
user.language: en
java.version: 1.4.2_04
java.vendor: Sun Microsystems Inc.
I recently changed the hosting for my website (from Linux to Linux) and
now I'm experiencing some trouble with java.io.FileReader and
java.io.FileWriter: their getEncoding() method returns ASCII (returned
ISO8859_1 on the previuos host). I've set -Dfile.encoding=ISO-8859-1 but
nothing has changed, except that
javax.mail.internet.MimeUtility.getDefaultJavaCharset() effectively
returns ISO-8859-1.
Does anyone know how the default encoding is selected? I report some
system properties:
file.encoding.pkg: sun.io
user.country: US
java.runtime.version: 1.4.2_04-b05
os.version: 2.4.27
user.timezone: America/New_York
file.encoding: ISO-8859-1
user.language: en
java.version: 1.4.2_04
java.vendor: Sun Microsystems Inc.