tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Meyer <me...@mesw.de>
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:

http://mail-archives.apache.org/mod_mbox/tomcat-users/200111.mbox/%3CD913221A882FD31198D90008C75D6909058B4BF3@cwnl-ams-pri01.nl.compuware.com%3E#archives

Markus


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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

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


Mime
View raw message