diff options
author | Max Peterson <max@incuna.com> | 2015-12-01 14:39:38 +0000 |
---|---|---|
committer | Max Peterson <max@incuna.com> | 2015-12-01 14:39:38 +0000 |
commit | 2c74c40ebc055a60d30a1424c685b6fbc96f364a (patch) | |
tree | d61a430d8801f3ee46f6b813dad25678419cd8a1 /wkhtmltopdf | |
parent | b2454fead29992336bdec05cec54657788b432ec (diff) | |
parent | f004729650217db7afdf1832e95db200672cf4c1 (diff) | |
download | django-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.py | 2 |
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 |