aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf
diff options
context:
space:
mode:
authorMax Peterson <max@incuna.com>2015-12-01 14:39:38 +0000
committerMax Peterson <max@incuna.com>2015-12-01 14:39:38 +0000
commit2c74c40ebc055a60d30a1424c685b6fbc96f364a (patch)
treed61a430d8801f3ee46f6b813dad25678419cd8a1 /wkhtmltopdf
parentb2454fead29992336bdec05cec54657788b432ec (diff)
parentf004729650217db7afdf1832e95db200672cf4c1 (diff)
downloaddjango-wkhtmltopdf-2c74c40ebc055a60d30a1424c685b6fbc96f364a.tar.gz
django-wkhtmltopdf-2c74c40ebc055a60d30a1424c685b6fbc96f364a.tar.bz2
django-wkhtmltopdf-2c74c40ebc055a60d30a1424c685b6fbc96f364a.zip
Merge pull request #72 from ghost/master
fix: Problem with filename
Diffstat (limited to 'wkhtmltopdf')
-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