Skip to content

Commit f0d5865

Browse files
committed
changing unicode decoding
1 parent 7b85e6b commit f0d5865

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/document_conversion_v1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# Example of retrieving html or plain text
1212
with open(join(dirname(__file__), '../resources/example.html'), 'r') as document:
1313
config = {'conversion_target': DocumentConversionV1.NORMALIZED_HTML}
14-
print(document_conversion.convert_document(document=document, config=config, media_type='text/html').text)
14+
print(document_conversion.convert_document(document=document, config=config, media_type='text/html')
15+
.content.decode('utf-8'))
1516

1617
# Example with JSON
1718
with open(join(dirname(__file__), '../resources/example.html'), 'r') as document:

0 commit comments

Comments
 (0)