tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: request.setCharacterEncoding() && request.getParameter()
Date Wed, 08 Jul 2009 22:42:03 GMT
Daniel Henrique Alves Lima wrote:
> 	Another question: Even when response's content type is not text (like
> pdf/odt/doc or image streams), should i set the response charset ? Does
> "application/pdf; charset=UTF-8" make sense ?
> 
No.
It only makes sense for MIME types that start with "text/" (such as 
"text/plain" and "text/html").

And, about the URIEncoding attribute for the Connector, understand the 
following : it means that Tomcat is going to (try to) decode ALL URLs of 
ALL requests that arrive on that port, for ALL Hosts and webapps, as if 
these URIs are ALL UTF-8 encoded.
That may, or may not, fit your situation.

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


Mime
View raw message