Skip to content

Commit fc83b3e

Browse files
Fix ASCII encoding issue
1 parent 671ed3b commit fc83b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

register.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
output = pypandoc.convert('README.md', 'rst')
55
f = open('README.txt','w+')
6-
f.write(output)
6+
f.write(output.encode('utf-8'))
77
f.close()
88

99
readme_rst = open('./README.txt').read()
1010
replace = '.. figure:: https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png\n :alt: SendGrid Logo\n\n SendGrid Logo\n'
1111
replacement = '|SendGrid Logo|\n\n.. |SendGrid Logo| image:: https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png\n :target: https://www.sendgrid.com'
1212
final_text = readme_rst.replace(replace,replacement)
1313
with open('./README.txt', 'w') as f:
14-
f.write(final_text)
14+
f.write(final_text.encode('utf-8'))

0 commit comments

Comments
 (0)