Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / February 2005

Tip: Looking for answers? Try searching our database.

[tomcat] file.encoding and tomcatw.exe

Thread view: 
P.Hill - 15 Feb 2005 18:15 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.

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.