Skip to content

Commit d667a33

Browse files
committed
decode stderr before writing to stdout
1 parent bac0816 commit d667a33

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
@@ -163,7 +163,7 @@ def to_pdf(self, path=None):
163163
# Since wkhtmltopdf sends its output to stderr we will capture it
164164
# and properly send to stdout
165165
if '--quiet' not in args:
166-
sys.stdout.write(stderr)
166+
sys.stdout.write(stderr.decode('utf-8'))
167167

168168
if not path:
169169
return stdout

0 commit comments

Comments
 (0)