You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/06/25 23:41:01 UTC

DO NOT REPLY [Bug 10230] New: - charset used to output HTTP header

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10230

charset used to output HTTP header

           Summary: charset used to output HTTP header
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dsontag@google.com


Within our application we call setContentType with charset equal to UTF-16LE.
Tomcat uses this charset when outputing the HTTP header (in addition to the
body), preventing most browsers from recognising the header as an actual header.

Solution: within HttpResponseBase's sendHeaders() method
[src/catalina/src/share/org/apache/catalina/connector], change line 578 to read
 new OutputStreamWriter(getStream()); -- i.e. don't include the new character
encoding.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>