1 Reply Latest reply on Jun 1, 2004 9:45 AM by normann

    file.encoding system property is wrong

    normann

      I have two RedHat 8.0 servers, both should have almost the same system configuration, including J2SDK 1.4.2_04. But when I start my JBoss 3.2.3 server in it, I have file.encoding=ISO-8859-1 on one of them and file.encoding=ANSI_X3.4-1968 on the other. I can't figure why but I need ISO-8859-1 on both. Does anyone know why this happens?

      The strange thing is, that when I have a simple class dump the System properties in a separate JVM, I also have file.encoding=ISO-8859-1 on both servers, so it seems like JBoss sets this value to different values on both servers. How is this possible and what do I do about it? If file.encoding=ANSI_X3.4-1968 I have some errors reading files.

        • 1. Re: file.encoding system property is wrong
          normann

          Problem solved. Our production server is restarted through cron who doesn't set the LANG environment variable. Therefore file.encoding=ANSI_X3.4-1968. Our test servers are (re)started as the root user where LANG=en_US.iso8859-1. Solution was to set the LANG variable in the /etc/crontab script.