Merged Anton Batenev's report of Nicolas Alvarez' unicode-in-be-new bug
[be.git] / .be / bea86499-824e-4e77-b085-2d581fa9ccab / bugs / e4ed63f6-9000-4d0b-98c3-487269140141 / comments / 8b54e56e-c693-4594-998f-5bd6c1f385d7 / body
1 For example, this works:
2
3 python -c 'from xml.etree import ElementTree; a=u"<body>\u1234</body>"; print type(a), a; b=ElementTree.XML(a.encode("unicode_escape")); print type(b.text), unicode(b.text).decode("unicode_escape");'
4
5 Ugly though :p.  Ah well.