摘要: 一、先说说编解码问题 编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。 Eg: 1 2 str1.decode('gb2312') #将gb2312编码的字符串转换成unicode编码 阅读全文
posted @ 2018-06-07 21:54 RescueWang 阅读(736) 评论(0) 推荐(0) 编辑