Skip to content

Commit

Permalink
auto set default encoding with utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWang committed Apr 5, 2017
1 parent 1180271 commit 1595fdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rqalpha/utils/py2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
import six


if six.PY2:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")


def to_utf8(string):
try:
if six.PY2:
Expand Down

0 comments on commit 1595fdd

Please sign in to comment.