Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Turkish Character Encoding on Tomcat 5.0

843842Aug 16 2005 — edited Aug 1 2006
When I enter some Turkish characters (e.g. ������������) in an Input Field and SUBMIT the form, I get rubbish characters. (the field is not related with DB, just simple JAva Bean field).

I use the following lines on top of my JSP page:
<%@ page language="java" contentType="text/html; charset=ISO-8859-9"    pageEncoding="ISO-8859-9"%>
<META http-equiv='Content-Type' CONTENT='text/html; charset=ISO-8859-9'>
I am able to solve the problem on WAS by setting the JVM option:
-Dclient.encoding.override=ISO-8859-9

However, in Tomcat 5.0 I cannot fix it. I also tried:
<% try {
     request.setCharacterEncoding("ISO-8859-9");
} catch (Exception e) {
     System.out.println(e.getMessage());
}%>
Please help!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2006
Added on Aug 16 2005
8 comments
390 views