tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Halm Reusser <>
Subject Re: Default character encoding for ServletRequest
Date Thu, 08 Oct 2009 07:20:28 GMT
Christopher Schultz wrote:

>> On that page is a POST form. When I evaluate the posted data, they are NOT
>> utf-8 encoded.
> /Most/ clients will act the way you expect, yet, there is no requirement
> for them to do so. What client is this, by the way?

Firefox 3.5.3, IE7, Safari 4.0.3

> See the W3C document for the <form> element, specifically the
> "accept-charset" attribute:
> Read the part about "UNKNOWN" and how clients MAY interpret this as "use
> the current page encoding". This is "RFC 'MAY'" which basically means
> it's a recommendation, but not at all required.
> If you configure your form like this, the client is essentially required
> to use your specified encoding if it expects the server to behave correctly:
> <form action="..." method="POST" accept-charset="UTF-8">
> ...
> </form>
> Give that a try and see what happens.

Does neither work. But thanks.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message