luciano
09-17-2004, 11:52 AM
Hi,
I'm moving my site to Rimu and I have a problem with file encoding. Java classes like java.io.FileReader and java.io.FileWriter use the ASCII encoding while I'm expecting iso-8859-1. I've set -Dfile.encoding=ISO-8859-1 but nothing has changed. I've also set LANG to en_US, en_US.iso8859-1, en_US.iso-8859-1, en_US.iso885915 and other variants (and restarted Tomcat every time).
On my previous (shared) hosting, LANG and -Dfile.encoding were not set, but I got iso-8859-1 in al FileReaders/Writers. I know I can use InputStreamReader and OutputStreamWriter, but this doesn't solve the problem with third-party libraries and tools (in my case SiteMesh).
Any suggestion? I tried on comp.lang.java.programmer (no answer) and I'm going to ask SiteMesk people.
I'm moving my site to Rimu and I have a problem with file encoding. Java classes like java.io.FileReader and java.io.FileWriter use the ASCII encoding while I'm expecting iso-8859-1. I've set -Dfile.encoding=ISO-8859-1 but nothing has changed. I've also set LANG to en_US, en_US.iso8859-1, en_US.iso-8859-1, en_US.iso885915 and other variants (and restarted Tomcat every time).
On my previous (shared) hosting, LANG and -Dfile.encoding were not set, but I got iso-8859-1 in al FileReaders/Writers. I know I can use InputStreamReader and OutputStreamWriter, but this doesn't solve the problem with third-party libraries and tools (in my case SiteMesh).
Any suggestion? I tried on comp.lang.java.programmer (no answer) and I'm going to ask SiteMesk people.