[jdom-interest] How to avoid setText("€") replacing '&' with

Ken Rune Helland kenh at csc.no
Thu Feb 22 02:50:04 PST 2001


At 06:47 PM 2/22/2001 +0800, Tanu wrote:
>Is there any generalised way to avoid such entities to be replaced by their
>corresponding special character? What is logic after trying setText with
>"\u20ac"; for "€".


\u20ac is the java escape sequence for the unicode character with
hexvalue 20ac.

The xmloutputter shoud (hopfully) replace this with €
whitch is the xml character entity for the unicode character
with hexvalue 20AC,if the output encoding is different from
unicode, for example iso-8859-1 or US-ASCII.


Best Regards
KenR
  




More information about the jdom-interest mailing list