tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mind Bridge (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Commented: (TAPESTRY-607) "UTF-8" page coming to "?????" After continuous cycle.actived page
Date Mon, 07 Nov 2005 23:21:20 GMT
    [ http://issues.apache.org/jira/browse/TAPESTRY-607?page=comments#action_12356990 ] 

Mind Bridge commented on TAPESTRY-607:

I have finally reproduced the issue and it does turn out to be servlet dependent -- it appears
only in Tomcat. The other servlet containers I've tested work okay. What's more, this appears
to be a very clear bug in the Tomcat code. Consider the following:
- reset() on the servlet response is necessary in many cases and should be supported well
by the servlet container. In this case it eliminates any remnants of the page before an exception
- Tomcat does very well to check if the Writer was already obtained in setContentType(). If
that is the case, the writer should not be changed and in particular its encoding should definitely
not be changed. Unfortunately, Tomcat _does_ change the encoding of the writer to ISO-8859-1,
because the encoding provided in the content type was "cleared" and no encoding is remembered
as a result. This is a definite bug that is the result of the left hand not knowing what the
right is doing. Tapestry suffers as a result.

The only possible solution is to circumvent that problem in Tomcat by only invoking setContentType()
the first time around. This will be problematic in the general case, however, since the content
type (not the encoding) of the error page may differ from that of the page (e.g. text/html
vs. text/rtf). I am therefore wondering what the best way to proceed further is. Any suggestions
would be welcome.

> "UTF-8" page coming to "?????" After continuous cycle.actived page
> ------------------------------------------------------------------
>          Key: TAPESTRY-607
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-607
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>  Environment: jdk1.4,tapestry4-beta5
>     Reporter: Jone
>  Attachments: tapestry-607.zip
> After upgrading my project from beta4 to beta5,the utf-8 encoded Chinses,Japanese characters
comes into "????".In fact ,the problem occurs in continuous  actived  pages.For example,In
page1,in direct lisener  mehtod invoke "cycle.active('page2')",then in page2,in pageBeginRender()
invoke "cycle.active(page3)",now in rendered page3,all the "utf-8" character comes in to "????".

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org

View raw message