tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36790] - response.setContentType() never forgets "charset"
Date Sun, 25 Sep 2005 08:10:31 GMT
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=36790>.
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=36790


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From markt@apache.org  2005-09-25 10:10 -------
For crying out loud, you quoted the part of the spec that requires this
behaviour in comment #2. Please, just read the spec.

<spec-quote section="SRV.5.2">
The setCharacterEncoding, setContentType, and setLocale methods can be called
repeatedly to change the character encoding ... Calls to setContentType set the
character encoding only if the given content type string provides a value for
the charset attribute.
</sepc-quote>

Therefore, response.setContentType("text/html; charset=utf-8"); sets the
character encoding and response.setContentType("application/x-foobar"); does not
change it.

This is not a bug. If you re-open this bug again, it is just going to be closed
again with no further comment.

If you have further questions about this, then please ask them on the
tomcat-user mailing list although to be perfectly frank you could save yourself
some time by reading the spec.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message