Skip to content

Commit

Permalink
changing unicode decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstylos committed Mar 14, 2016
1 parent 7b85e6b commit f0d5865
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/document_conversion_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
# Example of retrieving html or plain text
with open(join(dirname(__file__), '../resources/example.html'), 'r') as document:
config = {'conversion_target': DocumentConversionV1.NORMALIZED_HTML}
print(document_conversion.convert_document(document=document, config=config, media_type='text/html').text)
print(document_conversion.convert_document(document=document, config=config, media_type='text/html')
.content.decode('utf-8'))

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

0 comments on commit f0d5865

Please sign in to comment.