tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Encoding Issue on POST
Date Mon, 03 Jan 2011 15:00:23 GMT
Pid wrote:
> On 1/3/11 7:17 AM, André Warnier wrote:
>> Try the following : in your <form> tag, add the attribute
>>
>> enctype="multipart/form-data"
>>
>> and try again.
> 
> Is it possible to include charset attribute?
> 
>  enctype="multipart/form-data;charset=UTF-8"
> 

I don't think so.
You can specify

acceptCharset="xxx"

but that only determines what kind of input the form should accept.
Unfortunately, nothing "forces" the browser to send a charset indication for what it sends.
It should always do that when there is a body, but most browsers don't.
It's a real pita.
Even for multipart/form-data, they don't provide it in the parts, usually.
This whole area is full of holes, which is why you may need things like URIencoding and 
the charset filter.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message