Python2编码转换

编码转换图(转自金角大王)

编码转换需要先转换为Unicode编码,然后在转换为需要转换的编码:

如:UTF-8转GBK:UTF-8-->>(decode)Unicode-->>(encode)GBK

 

posted on 2018-12-17 21:47  耳矝  阅读(144)  评论(0编辑  收藏  举报

导航