[XML-SIG] Troubles with latin 1 characters

J.R. van Ossenbruggen Jacco.van.Ossenbruggen@cwi.nl
Wed, 29 Sep 1999 10:41:00 +0200


I have troubles parsing some (not all) lat1 characters.  For example,
processing  works fine,  gives troubles: it doesn't show up in my
output (it even looks like the  is parsed as an end-of-line).  What
is going wrong here?

-- Jacco

Example document:

    <test>
    e: 
    o: 
    </test>


Example code:

    import sys
    import xml.dom.core
    import xml.dom.sax_builder
    import xml.sax.saxexts

    parser  = xml.sax.saxexts.make_parser()
    builder = xml.dom.sax_builder.SaxBuilder()
    parser.setDocumentHandler(builder)
    parser.parse(sys.argv[1])

    print builder.document.documentElement.toxml()


Yields:
 
    <test>
    e: 
    o: </test>