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

Dirk Versavel dirk.versavel at pandora.be
Fri Feb 2 01:58:39 PST 2001


Dear,

I'm trying to generate an XML file containing the string "&#x20AC".  This is
the unicode character for the euro currency sign.  Since I'm using FOP
(http://xml.apache.org/fop) to convert this XML file into PDF, I need this
"€" literally.

When outputting this text with setText("€"), the resulting XML file
contains the text "€" which is not converted into the euro
currency sign by FOP.

I read something about this in the jdom FAQ, but since I'm pretty new into
all this stuff I didn't really understood how to solve this problem.  Can
anyone explain this better, or provide some instructions on how to solve
this.

Thanks!
Dirk

======================================================
Dirk Versavel                eBusiness Consulting BVBA
Tel/Fax: +32 (0)16/89.44.04      Wijgmaalsesteenweg 36
Mobile: +32 (0)478/50.54.05      3012 Wilsele - Leuven
mailto:dirk.versavel at pandora.be                Belgium
http://www.ebusiness-consulting.be
======================================================




More information about the jdom-interest mailing list