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