DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32296>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32296





------- Additional Comments From [EMAIL PROTECTED]  2004-11-19 16:05 -------
Finally solved it at least partially on the jsp level since I couldn't convince
tomcat to do it:
each jsp needs a 
  <%@ page contentType="text/html; charset=UTF-8" %>

if I only do  <%@ page contentType="text/html" %> it remains on ISO-8859-1 as
before.

The remaining problem is that the contents coming from the DB are now wrong
while the static jsp content is correct (the jsp's being saved as UTF)
If I also set <%@ page pageEncoding="ISO-8859-1" %> on each page, the static and
DB content are now the same again, but unfortunately, both wrong while the http
header is correct.

--------
Anyway, I have also removed struts from my app and built a comparably small
war-File (0.5 MB) I am willing to share if anybody is interested.

Also, if others run into that issue too, here a log of some futile attempts to
solve it within tomcat:
- as per void
org.apache.catalina.util.CharsetMapper.addCharsetMappingFromDeploymentDescriptor(String

 locale, String charset), it appeared, that the redhat locale is not present in
apache.catalina.util.CharsetMapperDefault.properties 

- setting in the catalina.sh 
export CHARMAP="UTF-8"
export LANG=dummy
export LC_ALL=du_MY
export LANGUAGE=du

to intentionally creating the suspected "miss" did not do it.

- migrating the web.xml to http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd and
adding
</welcome-file-list>
<locale-encoding-mapping-list>
<locale-encoding-mapping><locale>en</locale><encoding>UTF-8</encoding></locale-encoding-mapping>
...
didn't apparently solve it either.

- since I use struts with redirect, setting for a single page 
        response.setHeader("Content-Type", "text/html;charset=UTF-8");
didn't help either.

- exchanging the CharsetMapperDefault.properties in the catalina.jar with an
utf-ed verison didn't help either.

- exchanging the Constants.class in the tomcat-coyote.jar with
DEFAULT_CHARACTER_ENCODING="UTF-8" didn't help either.

- exchanging the LocaleToCharsetMap.class in the tomcat-coyote.jar an utf-ed
verison didn't help either.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to