X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c89776c783212b4e1ed572854bcf4308462d8b82..ccac52151427892364cf39322e7f8a0e18131ff5:/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):