[XML-SIG] unicode

Mark McEahern marklists@mceahern.com
Thu, 9 Aug 2001 16:15:16 -0700


xml.dom.minidom.parseString() doesn't accept unicode input--is this a bug?

# demo
from xml.dom.minidom import parseString
foo = parseString("<foo/>")
print foo.toxml()	# this appears to output unicode

try:
	bar = parseString(u'<bar/>')
except TypeError:
	print "parseString doesn't accept unicode input."

thanks,

// mark