[Expat-bugs] [ expat-Bugs-1185243 ] Acirc prepended to entity

SourceForge.net noreply at sourceforge.net
Mon Apr 18 17:04:57 CEST 2005


Bugs item #1185243, was opened at 2005-04-18 17:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1185243&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jan Hochstein (janho)
Assigned to: Nobody/Anonymous (nobody)
Summary: Acirc prepended to entity

Initial Comment:
Consider the following xml document:

-----

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE xml [
<!ENTITY deg     "&#176;">
]>

<anything>
Latitude is 42 &deg; 34' north.
</anything>

-----

The character handler is called three times. The data
it receives is this:
1) "Latitude is 42"
2) "°"
3) "34' north."

If your encoding is different from mine: the first
character received on the second call is HTML &Acirc;
or ASCII 194.

I have found this example to work with any entity not
just &deg; on expat-1.95.7 and expat-1.95.8 .


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1185243&group_id=10127


More information about the Expat-bugs mailing list