浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
url='aa'
print type(url)
print url.encode('utf8')
以上是ok的
keyword="中国"
print keyword.encode("utf8")
就会报错了
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)


posted on 2010-05-05 19:51  lexus  阅读(402)  评论(0编辑  收藏  举报