Skip to content

Fix UnicodeDecodeError when from_string source contains Unicode characters#111

Merged
alanhamlett merged 1 commit intoJazzCore:masterfrom
perdixsw:from_string_unicode
Oct 22, 2018
Merged

Fix UnicodeDecodeError when from_string source contains Unicode characters#111
alanhamlett merged 1 commit intoJazzCore:masterfrom
perdixsw:from_string_unicode

Conversation

@fvox13
Copy link
Copy Markdown
Contributor

@fvox13 fvox13 commented Aug 28, 2018

Since all arguments get normalized, including the string you pass to pdfkit.from_string, yield (normalized_key, str(value) if value else value) will raise UnicodeDecodeError if your input contains Unicode characters.

@bekab95
Copy link
Copy Markdown

bekab95 commented Oct 22, 2018

changed locally and it works ! thanks !

@alanhamlett
Copy link
Copy Markdown
Collaborator

This breaks Python 3, but I'll merge it anyway and fix master in the next commit.

@alanhamlett alanhamlett merged commit eb3ccc4 into JazzCore:master Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants