From 9d5743be65d638f958bc6d78e7256ee5c4972dec Mon Sep 17 00:00:00 2001 From: "Anton C. Wagensonner" Date: Sun, 1 Dec 2019 13:50:28 +0100 Subject: [PATCH] Use UTF-8 encoding to read the README file --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8c8f0b6..7f1c99c 100755 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ def project_content(filename): if not os.path.isfile(filepath): raise IOError("""File %s doesn't exist""" % filepath) out = '' - with io.open(filepath, 'r') as handle: + with io.open(filepath, 'r', encoding='utf-8') as handle: out += handle.read() if not out: raise ValueError("""File %s couldn't be read""" % filename)