Is it possible to consume UTF8 XML documents using xml.dom.pulldom?

Simon Willison simon at simonwillison.net
Wed Jul 30 11:59:16 EDT 2008


On Jul 30, 4:43 pm, Paul Boddie <p... at boddie.org.uk> wrote:
> I can't reproduce this on Python 2.3.6 or 2.4.4 on RHEL 4. Instead, I
> get the usual...
>
> ('CHARACTERS', <DOM Text node "Simon\u2019s XM...">)

I'm using Python 2.5.1 on OS X Leopard:

$ python
Python 2.5.1 (r251:54863, Feb  4 2008, 21:48:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin

I just tried it out on Python 2.4.2 on an Ubuntu machine and it worked
fine! I guess this must be an OS X Python bug. How absolutely
infuriating.

Thanks,

Simon



More information about the Python-list mailing list