You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/07/06 22:38:49 UTC

DO NOT REPLY [Bug 24970] - charset appended to content-type even if not text/*

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=24970>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24970

charset appended to content-type even if not text/*





------- Additional Comments From paul.brohman@viasafe.com  2004-07-06 20:38 -------
I noticed that this bug is marked as resolved, but i'm not sure it is. I came 
across this situation today when setting the content type to "application/pdf".

when i viewed the compiled code i noticed this being set by tomcat:

response.setContentType("application/pdf;charset=ISO-8859-1"); 

I set the content type to "application/pdf", but i didn't add the charset. 
Tomcat seems to be setting the charset to the default when a content type is 
specified. In the case of "application/pdf" setting the charset won't work with 
Adobe Reader 6.0, 6.01, and 6.0.2.

Viewing the headers with HTTPWatch, i'm able to see that the content type 
is "application/pdf;charset=ISO-8859-1" even though i just set "application/pdf"

Could someone please let me know if this is still a bug.

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