logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32074] - Layout.setContentType() needed!
Date Fri, 05 Nov 2004 23:49:06 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=32074>.
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=32074

Layout.setContentType() needed!

carnold@houston.rr.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Layout.setContentType()     |Layout.setContentType()
                   |needed!                     |needed!



------- Additional Comments From carnold@houston.rr.com  2004-11-05 23:49 -------
Character encoding and content text are different concepts and it would be wrong to try to
combine 
them.  Character encoding is appropriately handled at the appender, not the layout.  Layout's
are 
always dealing with UTF-16 characters, the appenders are responsible for converting that to
a byte 
stream.

WriterAppender derived appenders have an Encoding attribute that allows you to specify the
encoding 
to be used.  Perhaps in your use case, that was not appropriately set or the appender in use
does not 
appropriately control or report the encoding.

getContentType() is overriden in application specific layouts such as HTMLLayout (which returns
text/
html) and XMLLayout (which I was surprised doesn't return text/xml).

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


Mime
View raw message