You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2008/07/03 13:02:53 UTC

DO NOT REPLY [Bug 43736] Chainsaw does not honor encoding when loading XML files

https://issues.apache.org/bugzilla/show_bug.cgi?id=43736





--- Comment #11 from Thorbjørn Ravn Andersen <th...@gmail.com>  2008-07-03 04:02:52 PST ---
(In reply to comment #4)

> The only way to do it right is to rewrite, which I'm willing to do after
> getting log4cxx out the door.  But 
> there is never any case where using the platform encoding will get you the
> right content and using 
> "UTF-8" would get you the wrong content.

I would suggest looking at the XML snippet generating code instead, and change
it so that all non-ASCII characters as well as <, > and & are encoded as &#...;
(using the unicode value).  This will - I guess - parse correctly and
completely circumvent the encoding problem.

The CDATA wrapper will not be necessary then, since all problematic characters
are properly encoded.

Additionally this will be backware compatible.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org