From f04ca0974addbd199177cd460f83a9268e4c4af2 Mon Sep 17 00:00:00 2001 From: jxltom Date: Wed, 20 Sep 2017 14:09:12 +0800 Subject: [PATCH] Add encoding for open_file --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0fa4d9c..7b0ec8e 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ def open_file(fname): - return open(os.path.join(os.path.dirname(__file__), fname)) + return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8') def run_setup():