Skip to content

Commit eb3ccc4

Browse files
authored
Merge pull request JazzCore#111 from perdixsw/from_string_unicode
Fix UnicodeDecodeError when from_string source contains Unicode characters
2 parents 2c613d6 + 2b9a87c commit eb3ccc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfkit/pdfkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _normalize_options(self, options):
204204
for optval in value:
205205
yield (normalized_key, optval)
206206
else:
207-
yield (normalized_key, str(value) if value else value)
207+
yield (normalized_key, unicode(value) if value else value)
208208

209209

210210
def _normalize_arg(self, arg):

0 commit comments

Comments
 (0)