[opencms-dev] Newbie Encoding Error

Romuald romuald.beugnon at free.fr
Wed Apr 30 11:20:02 CEST 2003

I don't know if it's an orthodox solution but it's working. Here is the
beginning of the startup.bat file for my tomcat :

@echo off
if "%OS%" == "Windows_NT" setlocal
rem Start script for the CATALINA Server
rem $Id: startup.bat,v 1.4 2002/01/15 02:55:38 patrickl Exp $

rem Start of modification
set CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
rem End of my modification

Romuald Beugnon

> -----Original Message-----
> From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]
> On Behalf Of Zitan Broth
> Sent: mercredi 30 avril 2003 16:57
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Newbie Encoding Error
> Greetings All,
> Got the encoding error see below.  Running *doze* (just dev -- ugly,
> what can you do?).  Have tried setting the CATALINA_OPTS to
> both -Dfile.encoding=UTF-8 and -Dfile.encoding=ISO-8859-1 from the
> variables and restarting tomcat.
> I'm sure somebody knows what the bonehead mistake I'm making is :-)
> Thanks, Z.
> From Install:
> "To make sure Tomcat works with the correct charset to read and write
> files
> you should add the following parameter to the commandline that is used
> start Tomcat: -Dfile.encoding=UTF-8. You can set the environment
> CATALINA_OPTS to do so (CATALINA_OPTS=-Dfile.encoding=UTF-8 )"
> Error Message:
> "Error: the encoding of your Java VM is different from the OpenCms
> encoding!
> Java VM file encoding:Cp1252
> 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
> set
> in the environment variable CATALINA_OPTS by the -D parameter e.g.:
> CATALINA_OPTS=-Dfile.encoding=ISO-8859-1 "
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> http://mail.opencms.org/mailman/listinfo/opencms-dev

More information about the opencms-dev mailing list