X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e4836157dee23cebc8e69e9dafab3cac41f20035..8cfe1f8fb4f50c405ec1fa5ddfa367ef951e9c6b:/librarian/parser.py diff --git a/librarian/parser.py b/librarian/parser.py index 4cdaa79..afc4f1a 100644 --- a/librarian/parser.py +++ b/librarian/parser.py @@ -61,7 +61,7 @@ class WLDocument(object): try: parser = etree.XMLParser(remove_blank_text=False) - tree = etree.parse(StringIO(data), parser) + tree = etree.parse(StringIO(data.encode('utf-8')), parser) if swap_endlines: cls.swap_endlines(tree)