diff --git a/standards/views.py b/standards/views.py index 919a3b3..29fe816 100644 --- a/standards/views.py +++ b/standards/views.py @@ -852,7 +852,7 @@ from xhtml2pdf import pisa # Utility function def convert_html_to_pdf(source_html, output_filename): result = BytesIO() - pdf = pisa.pisaDocument(BytesIO(source_html.encode("ISO-8859-1")), result) + pdf = pisa.pisaDocument(BytesIO(source_html.encode("UTF-8")), result) if not pdf.err: return HttpResponse(result.getvalue(), content_type='application/pdf') return None