Re: Change encoding of Java Vm to ISO-8859-1

From: Andrew Patzer (patzera_at_hotmail.com)
Date: 01/14/04


Date: 14 Jan 2004 14:15:38 -0800

I just had the same problem. Here's what I did to fix it:

OS: WinXP Pro

1. Right-click on the Tomcat icon in the system tray and select
'Properties'

2. Select the Java VM tab.

3. Add -Dfile.encoding=ISO-8859-1 to the Java Options box on a
separate line after the other stuff.

You may need to restart Tomcat after making this change. This fixed my
problem right away. I hope it helps.

Andrew

nsajus@yahoo.com (Ann) wrote in message news:<cca0635f.0401091531.53f87d83@posting.google.com>...
> Hi,
> Is there any way to Change encoding of Java Vm to ISO-8859-1?
>
> i am using Java vm along with an application called opencms.
> I get the following error message..
>
> Error: the encoding of your Java VM is different from
> the OpenCms encoding!
>
> Java VM file encoding: UTF-8
> OpenCms encoding: ISO-8859-1
>
> To continue the setup process:
>
> * Change the encoding of your Java VM. To do that
> you must modify the file.encoding setting. Using
> Apache Tomcat, a different encoding can be set in the
> environment variable CATALINA_OPTS by the -D parameter
> e.g.:
> CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
>
> * If you want to use an encoding different from
> ISO-8859-1, you must also adjust the
> defaultContentEncoding setting in
> WEB-INF/config/opencms.properties.
>
> Unless you have specific encoding requirements, you
> should use the default ISO-8859-1 setting. Please
> refer to the Sun documentation for a list of supported
> encodings for your OS.
>
>
> Can some one please help me out?
> Thanks,
> Ann



Relevant Pages

  • [LINUX]Encoding problem when my application is started at boot
    ... I've got an encoding problem with my java application under a Mandriva ... When i start tomcat and the servlet on the boot time (i've made a link ...
    (comp.lang.java.programmer)
  • Tomcat/Linux: encoding Problem
    ... bekannt ist, dass es initial unter UTF-8 aufgesetzt wurde, muß ... welches Encoding hier von Tomcat bzw. ... bereits einige Einstellungen vorgenommen: Variablen LANG und SUPPORTED ...
    (de.comp.lang.java)
  • Tomcat4: Default Page Encoding UTF8
    ... I am using Tomcat 4.1.27 running servlets which worked ... change the page encoding in the browser to utf-8 everything ... Is there any possiblilty the change the default page encoding ...
    (comp.lang.java.programmer)
  • Re: Japanese text displayed incorrectly in Linux server
    ... It is not necessarily the encoding of the document content. ... Gimme a small testable version of your JSP page. ... I bet you are using Tomcat for the JSP/servlet container. ...
    (comp.lang.java.programmer)
  • Tomcat on OpenVMS - Is source code available?
    ... Is the Java source code for Tomcat [as built by HP for the CSWS_JAVA v2.1 ... I know it is based on Tomcat v4.1.24, which is the version that it reports ... "WEB-INF" subfolder of a webapp to enable them to be protected from being ... The JSP files in the "WEB-INF" subfolder do not get compiled into Java ...
    (comp.os.vms)