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 b5df681..053a2e7 100644
--- a/wkhtmltopdf/utils.py
+++ b/wkhtmltopdf/utils.py
@@ -129,7 +129,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