def parse_from_unicode(unicode_str):
    s = unicode_str.encode('utf-8')
return etree.fromstring(s, parser=utf8_parser)
Is there a way to force lxml to parse Unicode strings that specify an encoding in a tag?