Change encoding of Java Vm to ISO-8859-1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ann

    Change encoding of Java Vm to ISO-8859-1

    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
    defaultContentE ncoding setting in
    WEB-INF/config/opencms.propert ies.

    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
  • Ann

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

    Figured it out

    Add the following entry in /root/.bash_profile/ or etc/profile

    CATALINA_OPTS=-Dfile.encoding= ISO-8859-1



    [email protected] m (Ann) wrote in message news:<cca0635f. 0401091531.53f8 [email protected] ogle.com>...[color=blue]
    > 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
    > defaultContentE ncoding setting in
    > WEB-INF/config/opencms.propert ies.
    >
    > 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[/color]

    Comment

    • Andrew Patzer

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

      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


      [email protected] m (Ann) wrote in message news:<cca0635f. 0401091531.53f8 [email protected] ogle.com>...[color=blue]
      > 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
      > defaultContentE ncoding setting in
      > WEB-INF/config/opencms.propert ies.
      >
      > 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[/color]

      Comment

      Working...