How do I output text w/ unicode characters?
xml = xmlwitch.builder()
with xml.root as node:
# \xa9 == Unicode code point for (C) symbol.
xml.name(u"This text is \xa9 2009 Some Guy Productions.")
The code above fails with:
UnicodeEncodeError: ascii, <name>This text is © 2009 Some Guy
Productions.</name>, 19, 20, ordinal not in range(128)