会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
RescueWang
博客园
首页
新随笔
联系
管理
订阅
2018年6月7日
Python解码编码问题
摘要: 一、先说说编解码问题 编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。 Eg: 1 2 str1.decode('gb2312') #将gb2312编码的字符串转换成unicode编码
阅读全文
posted @ 2018-06-07 21:54 RescueWang
阅读(736)
评论(0)
推荐(0)
编辑
公告