会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
in_the_way
博客园
首页
新随笔
联系
管理
订阅
2018年4月10日
python 编码问题
摘要: 中文iso8859-1编码转utf8编码 str.encode("gbk").decode('gbk').encode('utf-8') 原理: utf8编码的文本可以用iso8859-1的编码表示,但是反过来不行。iso8859-1是单字节编码,而utf8是定长编码,从utf8转化成iso8859
阅读全文
posted @ 2018-04-10 11:08 in_the_way
阅读(113)
评论(0)
推荐(0)
编辑
公告