I am trying to use a web application which prefers
ISO-8859-1.
I'm on windows, I'm having trouble figuring out where
to set this value permenantly so that
tomcatw.exe (the windows exe that will start tomcat and provide a shut
down icon on the toolbar) will always start with the right file encoding.
In a command window I can run
TOMCAT/bin/startup and it picks up the CATALINA_OPTS
environment var of
CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
But tomcatw.exe seems to have a different scheme for
obtaining startup params.
How do I set it so I can start from an icon.
Thanks,
-Paul
P.Hill - 15 Feb 2005 19:41 GMT
> I am trying to use a web application which prefers
> ISO-8859-1.
> I'm on windows, I'm having trouble figuring out where
> to set this value permenantly so that
> tomcatw.exe (the windows exe that will start tomcat and provide a shut
> down icon on the toolbar) will always start with the right file encoding.
To answer my own question:
Tomcat on windows comes with a Configure Tomcat app:
(see tomcat menu, or if you are already runnig Tomcat, right click the
tomcat toolbar icon | properties)
Java VM tab
Java Options
add the line -Dfile.encoding=ISO-8859-1
problem solved.
thanks for my own help :-)
-Paul