aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wkhtmltopdf/utils.py2
1 files changed, 1 insertions, 1 deletions
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