文章分类 -  摘抄

摘要:原文出处:http://www.jb51.net/article/17560.htm为什么会报错“UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)”?本文就来研究一下这个问题。--------------------------------------------------------------------------------字符串在Python内部的表示是unicode编码,因此,在做编码转换时,通常需要以un 阅读全文
posted @ 2013-11-20 09:33 赵大班长1 阅读(472) 评论(1) 推荐(0)