Skip to content

Commit 8a9a910

Browse files
committed
Merge pull request xuminzhong#1 from hyln9/patch-1
Support locale of China and so on.
2 parents be94bb1 + af54b13 commit 8a9a910

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

local/proxy.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
import os
4444
import glob
4545

46+
default_encoding = 'utf-8'
47+
if sys.getdefaultencoding() != default_encoding:
48+
reload(sys)
49+
sys.setdefaultencoding(default_encoding)
50+
4651
sys.dont_write_bytecode = True
4752
sys.path += glob.glob('%s/*.egg' % os.path.dirname(os.path.abspath(__file__)))
4853

0 commit comments

Comments
 (0)