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

Paul Boddie paul at boddie.org.uk
Wed Jul 30 19:54:17 CEST 2008


On 30 Jul, 19:23, Peter Otten <__pete... at web.de> wrote:
>
> I'm on Kubuntu 7.10 and see the same error as Simon. The problem is in the
> minidom.CharacterData class which has the following method
>
>     def __repr__(self):
>         data = self.data
>         if len(data) > 10:
>             dotdotdot = "..."
>         else:
>             dotdotdot = ""
>         return "<DOM %s node \"%s%s\">" % (
>             self.__class__.__name__, data[0:10], dotdotdot)
>
> The data attribute is a unicode instance...

Who wants to be first to submit a patch? ;-)

Paul



More information about the Python-list mailing list