Bugs item #921811, was opened at 2004-03-23 09:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=921811&group_id=73068

Category: main tag library
Group: v 1.0-b3
Status: Open
Resolution: None
Priority: 5
Submitted By: Wade Wiles (wbwiles)
Assigned to: Nobody/Anonymous (nobody)
Summary: Encoding (ResponseOverrideFilter) Error

Initial Comment:
The ResponseOverrideFilter has a problem with encoding.

The content type ( in mycase from WebSphere 5.1.1)
already has the charset parameter set.  Example:

"text/html;charset=ISO-8859-1"

The line to set the content type does not take this
into account and tries to add the charset - again.

servletResponse.setContentType(contentType +
characterEncoding);

This of course causes an error.
SRTServletRes W Failed to create a writer with
encoding: ISO-8859-1; charset=ISO-8859-1.

>From the doc it seems that already having the charset
returned in GetContentType() is valid :

If no content type has been specified, this method
returns null. If a content type has been specified and
a character encoding has been explicitly or implicitly
specified as described in getCharacterEncoding(), the
charset parameter is included in the string returned.
If no character encoding has been specified, the
charset parameter is omitted.

Thanks,

Wade Wiles




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536613&aid=921811&group_id=73068


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to