tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Halverson <>
Subject Issues with Tomcat 3.2.1, JSPs and I18N ( Implicit character tran slation ??? )
Date Fri, 25 May 2001 19:42:04 GMT
I'm running Tomcat 3.2.1 on a Solaris box JDK 1.3
and using ECS1.4.1 for generating HTML

I can save CJKV characters to my back end Oracle db, retrieve them,
and display them if I'm using a servlet.  Doesn't matter whether I use ECS
or string handling.  The browser recognizes that I'm sending in UTF-8
and handles the characters just fine.

However when I use the same code to get the data from the DB and run it 
through a JSP page I get gobbledygook.

A couple of other factors
1.  Yes I'm setting the contentType to "text/html; charset=UTF-8" in the
Page Directiive
2.  Yes the browser is set to use the UTF-8 encoding.
2.  Yes I realize that the jsps are compiled into a servlet but while
looking at the jsp compiled java src file
     it appears that the servlet uses a specialized class JspWriter to
handle printing to the output stream.
3.  ECS had a similar issue in previous versions.  There are some tricky
issues with how streams are handled
     so that you don't run into implicit and screwy character encoding

I would appreciate any feedback, I'm going to dig through the Tomcat source
to see if I can find the root problem
and would hate to do that if there was an easy answer that I'm missing.

Chris Halverson

Christopher R. Halverson
"Never underestimate the ability of any human to delude themselves,"
"and convince others their delusion is absolute"

View raw message