From d6a80b6b2826a0642f88b73ce6395b8258e36544 Mon Sep 17 00:00:00 2001 From: ieachen Date: Thu, 2 Dec 2021 19:05:08 +0800 Subject: [PATCH] Fix pip install README UnicodeDecodeError (#8) On Windows, Python 3.7 : "UnicodeDecodeError: 'gbk' codec can't decode byte" --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4786302..65038c1 100644 --- a/setup.py +++ b/setup.py @@ -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 ''