diff --git a/oml/media/epub.py b/oml/media/epub.py index 1860353..7543c20 100644 --- a/oml/media/epub.py +++ b/oml/media/epub.py @@ -39,7 +39,7 @@ def cover(path): elif 'html' in e.attrib['media-type']: filename = e.attrib['href'] filename = os.path.normpath(os.path.join(os.path.dirname(opf[0]), filename)) - html = z.read(filename) + html = z.read(filename).decode('utf-8') img = re.compile('