python解决 “windows-1252”乱码
文章目录
import chardet
strs = "bema schwimmfl gel gr÷▀e 0"
a = chardet.detect(strs) #windows-1252
str2 = strs.decode('windows-1252')
str2.encode('utf-8')
print str2import chardet
strs = "bema schwimmfl gel gr÷▀e 0"
a = chardet.detect(strs) #windows-1252
str2 = strs.decode('windows-1252')
str2.encode('utf-8')
print str2
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论