Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: [Fwd: Re: Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew Char
Set)- encodin g problem]

Veniamin Fichin

2004-03-31

Replies:

yair.fine@(protected):

> Thanks Veniamin Fichin,
> Can you copy paste your code that solves the problem?

  The output encoding of view.jsp page was hard-coded "utf-8" value. I
changed it to be more flexible by lookling into session attribute which
was set previously. Code snipped follows.

--- view.jsp: ---

<%
String encoding=(String)session.getAttribute("tHAVW07QUf");
if (session!=null) {
 response.setContentType("text/html; charset="+encoding);
}
%>
<%@(protected)"%>
<!-- ... JSP body ... -->

--- / view.jsp: ---

  Session attribute setting you can see in source code. But bear in
mind that this fix works with POST method only (at least for me).

> Regards
> Yair Fine

2all: have anybody interested in this topic tried that .war? What's the
results?



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.