From d2c63dbb89d3100058ff70ff1395afb5026e49cd Mon Sep 17 00:00:00 2001 From: Morris Chuang Date: Sun, 29 Dec 2019 10:50:40 +0800 Subject: [PATCH] Update setup.py to prevent UnicodeDecodeError Use "utf8" encoding to open "README.rst" to prevent UnicodeDecodeError below. UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 189: illegal multibyte sequence --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 476f105..12cfee3 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup -with open('README.rst') as f: +with open('README.rst', encoding="utf8") as f: readme = f.read()