X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/bbc5bd6a7c8280758a2388ebffec26e0afc35d00..1019e504d3ffa1edc034428d5e3b5cbf7bd2fc4f:/apps/catalogue/ebook_utils.py?ds=sidebyside 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):