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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15904

UnsupportedEncodingException not thrown if invalid charset (from content type) is set 
and a call to ServletResponse.getWriter() is made.

           Summary: UnsupportedEncodingException not thrown if invalid
                    charset (from content type) is set and a call to
                    ServletResponse.getWriter() is made.
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


According the the javadocs for Servletrespons.getWriter():
  - "java.io.UnsupportedEncodingException - if the charset specified in
setContentType cannot be used"

The following code doesn't cause the UnsupportedEncodingException to be thrown:

response.setContentType("text/html; charset=invalid-charset");
response.getWriter();

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to