tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Meyer <>
Subject Re: Default character encoding for ServletRequest
Date Thu, 01 Oct 2009 11:51:09 GMT
It all depends on the client. IIRC if you set the charset in the content 
type header to utf-8, like this

contentType="text/html; charset=utf-8"

most browsers will then use utf-8 for HTTP GET and POST requests when 
responding to the given page.

See this thread for some more information:


Halm Reusser schrieb am 01.10.2009 13:22:
> Pid wrote:
>> How about?
>>  request.setCharacterEncoding("ENCODING");
> I wan't do it within the application. I prefer to configure the app 
> container or the app itself.
>> Bearing in mind that you're not really changing what the client 
>> requests, or might expect you to be setting...
> Is there a possibility to force the client to use a specific encoding?
> -Halm
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message