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 str2
python解决 “windows-1252”乱码
最新推荐文章于 2023-05-31 11:54:18 发布
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 str2