X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c48ff2d3e64065793c24cfb8ae151f02b8e6646a..ad2f309daa381e9a7a2b7a8a17ef494b60f838b2:/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 = {}