diff options
author | Daniel Gatis Carrazzoni <danielgatis@users.noreply.github.com> | 2015-01-05 14:46:57 -0300 |
---|---|---|
committer | Daniel Gatis Carrazzoni <danielgatis@users.noreply.github.com> | 2015-01-05 14:46:57 -0300 |
commit | f004729650217db7afdf1832e95db200672cf4c1 (patch) | |
tree | 4752ef6981077a91bdec1e09d4f708accd751f41 | |
parent | e354459621f417195a96ca87ccf4ac42ef844aa4 (diff) | |
download | django-wkhtmltopdf-f004729650217db7afdf1832e95db200672cf4c1.tar.gz django-wkhtmltopdf-f004729650217db7afdf1832e95db200672cf4c1.tar.bz2 django-wkhtmltopdf-f004729650217db7afdf1832e95db200672cf4c1.zip |
fix #71
fix https://github.com/incuna/django-wkhtmltopdf/issues/71
-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 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 |