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

Tanu tanum at newstakes.com
Thu Feb 22 02:47:45 PST 2001


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 "€".

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
Sent: Thursday, February 22, 2001 3:24 PM
To: jdom-interest at jdom.org
Subject: jdom-interest digest, Vol 1 #478 - 2 msgs


Send jdom-interest mailing list submissions to
	jdom-interest at jdom.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.denveronline.net/mailman/listinfo/jdom-interest
or, via email, send a message with subject or body 'help' to
	jdom-interest-request at jdom.org

You can reach the person managing the list at
	jdom-interest-admin at jdom.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of jdom-interest digest..."


Today's Topics:

   1. Re: How to avoid setText("€") replacing '&'  with
       '&' (Jason Hunter)

--__--__--

Message: 1
Date: Wed, 21 Feb 2001 20:44:49 -0800
From: Jason Hunter <jhunter at collab.net>
To: Dirk Versavel <dirk.versavel at pandora.be>
CC: jdom-interest at jdom.org
Subject: Re: [jdom-interest] How to avoid setText("&#x20AC;") replacing '&'
with
 '&amp;'

> 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
> "&#x20AC;" literally.
>
> When outputting this text with setText("&#x20AC;"), the resulting XML file
> contains the text "&amp;#x20AC;" which is not converted into the euro
> currency sign by FOP.

Try setText("\u20ac");

-jh-


--__--__--

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com

End of jdom-interest Digest




More information about the jdom-interest mailing list