By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,719 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,719 IT Pros & Developers. It's quick & easy.

Parsing XML with numeric entities outside Latin 1

P: n/a

I have an XML file with this text in it:
<price>10 &#x20AC;</price>
(just an example)

My input and output encodings are Latin 1 (ISO-8859-1).

When PHP parses it, the characterdata function outputs
10 ?
I would like it to output
10 &#x20AC;
i.e. just leave the entity as it is, as the character can't be
represented directly in Latin 1.

Is this possible ?

Thank you.
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.