X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c89776c783212b4e1ed572854bcf4308462d8b82..df0bfd836ecf9381deb8cae7ee19a2f54ebd7578:/apps/catalogue/ebook_utils.py diff --git a/apps/catalogue/ebook_utils.py b/apps/catalogue/ebook_utils.py index 1fcf8d33..d9c99227 100644 --- a/apps/catalogue/ebook_utils.py +++ b/apps/catalogue/ebook_utils.py @@ -13,7 +13,8 @@ class RedakcjaDocProvider(DocProvider): def by_slug(self, slug): return StringIO(Book.objects.get(dc_slug=slug - ).materialize(publishable=self.publishable)) + ).materialize(publishable=self.publishable + ).encode('utf-8')) def serve_file(file_path, name, mime_type):