X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4186d2daff23d0de25e2cdaeb6704d0dfe0feec1..f82c3a46152b7b274576568b3626f24f51f24ce3:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index dcb68d8f..019d25a7 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -250,7 +250,7 @@ def book_html(request, slug): doc = book.wldocument(parse_dublincore=False) html = doc.as_html(options={'gallery': "'%s'" % book.gallery_url()}) - html = html.get_bytes() if html is not None else '' + html = html.get_bytes().decode('utf-8') if html is not None else '' # response = http.HttpResponse(html, content_type='text/html') # return response # book_themes = {}