I have a problem with Tomcat 5, which might turn out to be a bug.

I just send a page (with UTF-8 encoding) from my servlet which contains
some special characters (in this case ° and §) in the value for a hidden
form field (see example below).
Requesting the content with IE 6 or Mozilla 1.5 through a tunnel from TC
4.1.19 I am seeing the following (special characters are encoded in two
characters) and everything works just fine in the browser. Using TC 5.0.16
or 5.0.18 alpha the special characters are sent as they would when being
ISO-encoded I believe. The browser tries to interpret the page and the
special characters as UTF-8, so nothing works and the page-functionality
breaks. If I manually switch the encoding in the browser to ISO, it works
again.

So my question is, was there any intentional change in between TC 4.1 and
TC5 regarding this issue, is this an already known problem or could this be
a bug, or a fault on my side?

I tried to search the archives and found quite a lot which deals with
character encoding, but nothing which seem to match, I apologize if I
missed something.

Any help is appreciated.

Regards,
Olaf


Example:

Tomcat 4.1.19

Content-Type: text/html;charset=UTF-8

<html>
...
<input type="hidden" name="TEMPLATELIST" value="DE=1§Demo°>
...
</html>

Tomcat 5.0.18 Alpha

Content-Type: text/html;charset=UTF-8

<html>
...
<input type="hidden" name="TEMPLATELIST" value="DE=1§Demo°>
...
</html>


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

Reply via email to