python ‘ascii’ codec can’t encode character u’\xa0′ in position : ordinal not in range()
执行python脚本时,报错如下 ‘ascii’ codec can’t encode character u’\xa0′ in position 157: ordinal not in range(128) 通过网上查找,获得了错误原因: python安装后默认编码是ascii,当python处理非ascii编码文本时,就会报如上错误。
Read more