have save_mets use encoding for byte-serialization to avoid HTML-encoding non-ASCII codepoints
@@ -16,4 +16,5 @@ def xmllint_format(xml):
"""
parser = ET.XMLParser(resolve_entities=False, strip_cdata=False, remove_blank_text=True)
document = ET.fromstring(xml, parser)
- return ('%s\n%s' % ('<?xml version="1.0" encoding="UTF-8"?>', ET.tostring(document, pretty_print=True).decode('utf-8'))).encode('utf-8')
+ return ('%s\n%s' % ('<?xml version="1.0" encoding="UTF-8"?>',
+ ET.tostring(document, pretty_print=True, encoding='UTF-8').decode('utf-8'))).encode('utf-8')
