incuna/django-wkhtmltopdf — pull request #13 by sfllaw (2012-08-23 15:13:26+00:00)
Title: Fix encoding issues ini PDFTemplateResponse.render_to_temporary_file()

If there are Unicode characters in the rendered HTML, NamedTemporaryFile.write() will not work. They need to be turned into raw bytes().