UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 2624-2625: ordinal not in range(128)

  sre

转换报错:

UnicodeEncodeError: 'ascii' codec can't encode characters in position 2624-2625: ordinal not in range(128)

字符集的问题,在文件前加两句话:

reload(sys)
sys.setdefaultencoding( "utf-8" )

LEAVE A COMMENT

Captcha Code