From f004729650217db7afdf1832e95db200672cf4c1 Mon Sep 17 00:00:00 2001 From: Daniel Gatis Carrazzoni Date: Mon, 5 Jan 2015 14:46:57 -0300 Subject: fix #71 fix https://github.com/incuna/django-wkhtmltopdf/issues/71 --- wkhtmltopdf/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wkhtmltopdf/utils.py b/wkhtmltopdf/utils.py index 603d29a..3c9b4a7 100644 --- a/wkhtmltopdf/utils.py +++ b/wkhtmltopdf/utils.py @@ -122,7 +122,7 @@ def http_quote(string): if isinstance(string, six.text_type): try: import unidecode - string = unidecode.unidecode(string) + string = bytes(unidecode.unidecode(string), 'ascii') except ImportError: string = string.encode('ascii', 'replace') # Wrap in double-quotes for ; , and the like -- cgit v1.2.3