Skip to content

Commit

Permalink
Fix pip install README UnicodeDecodeError (#8)
Browse files Browse the repository at this point in the history
On Windows, Python 3.7 : "UnicodeDecodeError: 'gbk' codec can't decode byte"
  • Loading branch information
ieachen authored Dec 2, 2021
1 parent c337c29 commit d6a80b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def long_desc():
try:
with open('README.md') as f:
with open('README.md', encoding='utf8') as f:
return f.read()
except IOError:
return ''
Expand Down

0 comments on commit d6a80b6

Please sign in to comment.