Tomcat4 Patch about Character Encoding
=================================================

Introduction
-------------------------------------------------
This patch fixes several problems about character encoding.

This is made for Tomcat version 4.1.24. But this will maybe work well also with the other version of Tomcat 4.

This source code have been modified from the Tomcat 4.1.24 source code.

The class files have been compiled with JDK 1.4.

How to Install
-------------------------------------------------
Copy "classes/*" in this archive into "$(CATALINA_HOME)/server/classes/".
Example:
    cp -r classes/* /var/tomcat4/server/classes/

Patched Features
-------------------------------------------------
Problem:
    When using Coyote Connector (when typically run as standalone), HTTP response headers are outputed as bytes each byte is low byte of UCS2.
Modification:
    Outputs HTTP headers in encoding which is specified in Content-Type field in response header.
Classes:
    org.apache.coyote.http11.Http11Processor
    org.apache.coyote.http11.InternalOutputBuffer

Problem:
    When using Warp Connector (when typically run with apache), HTTP response headers are outputed as UTF-8 string.
Modification:
    Outputs HTTP headers in encoding which is specified in Content-Type field in response header.
Classes:
    org.apache.catalina.connector.warp.WarpPacket
    org.apache.catalina.connector.warp.WarpResponse


=================================================
This product includes software developed by the Apache Software Foundation <http://www.apache.org/>.

FUWAFUWA (21 May 2003)
 E-MAIL:  fuwafuwa@mcn.ne.jp
 WEBSITE: http://www.aq.wakwak.com/~nishida/
