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 43736] Chainsaw does not honor encoding when loading XML files
Date Thu, 03 Jul 2008 11:02:53 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43736





--- Comment #11 from Thorbjørn Ravn Andersen <thorbjoern@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


Mime
View raw message