my dog learned polymorphism
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "New encoding for tomcat" Watch "New encoding for tomcat" New topic

New encoding for tomcat

Burak Celebi

Joined: Feb 08, 2005
Posts: 14

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

Joined: Dec 11, 2004
Posts: 13410

On Linux boxes, I add this line to the top of my 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

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

I added

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

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

In the Catalina.bat (windows) (windows)
apache$ (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.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: New encoding for tomcat
It's not a secret anymore!