Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems In Encoding.

Status
Not open for further replies.

Hattusas

Programmer
Nov 11, 2001
344
TR
Hi!In my JSP pages I have a serious problem.I want use Turkish characters and the code type of Turkish is
ISO-8859-9 .

However,when I deploy my servlets and JSPs into war file and allow to run it,I am getting that exception message:
"java.lang.RuntimeException: Unknown/unsupported charset: ISO-8859-9 - java.io.UnsupportedEncodingException: Charset: ' ISO-8859_9' not recognized, and there is no alias for it in the WebServerMBean".
Here is the syntax in my jsp files. (All of the jsp of mine give the same error!)

<%@ page contentType=&quot;text/html; charset= ISO-8859-9&quot;%>

Also there are 2 extraordinary things.
1.
<%@ page contentType=&quot;text/html; charset= ISO-8859-1&quot;%>
also gives the same error.That means even standart latin code page does not work.
2.
When I omit this and instead type

<%
response.setContentType(&quot;text/html; charset=ISO-8859-9&quot;);
%>

it gives no error but I can't see the special Turkish characters.What could be the reason for that?

Thanks for spending time.


Salih Sipahi
Software Engineer.
City of Istanbul Turkey
openyourmind77@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top