This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes New encoding for tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "New encoding for tomcat" Watch "New encoding for tomcat" New topic
Author

New encoding for tomcat

Burak Celebi
Greenhorn

Joined: Feb 08, 2005
Posts: 14
Hi,

How can I install a new encoding(iso-8859-6) support to tomcat?

I have no problems with my locale tomcat, however at serverside charecters are not displayed properly.

Thanks in advance.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

On Linux boxes, I add this line to the top of my startup.sh wrapper:
export LANG=en_US.iso885915


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Burak Celebi
Greenhorn

Joined: Feb 08, 2005
Posts: 14
thank ypuı for your reply

I added



to startup.sh but there is no change.
sergio mendez-rueda
Ranch Hand

Joined: May 12, 2005
Posts: 37
hi,
try this:

In the Catalina.bat (windows) catalina.sh (windows)
apache$jakarta_config.com (OpenVMS), file there must be a switch added to
the call to java.exe. The switch is:

-Dfile.encoding=UTF-8 (or what do you need)

I cannot find documentation for this environment variable anywhere or what
it actually does but it is essential.

ser
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Moving this to the Apache/Tomcat forum. This forum is for Servlets questions.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: New encoding for tomcat
 
Similar Threads
difference between the two
Taglib Problem under Resin 2.1.11
startup.bat is overwritting tomcat-users.xml
getting code page programatically
Problem with charset