[jdom-interest] Escaping ampersand left in output from
per.norrman at austers.se
Sun Jan 23 15:57:20 PST 2005
JDOM never interprets character entities. Instead of doing:
create the text using Java's unicode support:
Wether this character will be encoded or not depends on the
encoding you use when you output the document.
Scott Yeadon skrev:
> When writing out a file using the XMLOutputter, character entities are
> left escaped. Is this behaviour intentional? I would have thought this
> would only be required for internal processing and the ampersand entity,
> when affixed to a character entity, should be de-escaped when output.
> For example, I currently get &#x4e24; in my output instead of
> 两 which browsers do not understand. Is there a way of turning
> this behaviour off, or does anyone know the appropriate way to handle
> this in JDOM (I'd rather not do a post-process!)?
> To control your jdom-interest membership:
More information about the jdom-interest