X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e4836157dee23cebc8e69e9dafab3cac41f20035..f8442984a021793164661a54ec84ae9caaf9862b:/librarian/parser.py?ds=inline 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)