标签: php encoding
如何确定此字符串的编码方式?
Sometimes, it’s the little things that make us the happiest.
答案 0 :(得分:17)
UTF-8解码为Latin-1编码为UTF-8解码为CP1252。
>>> u'’'.encode('cp1252').decode('utf8').encode('latin1').decode('utf8') u'\u2019'
说真的......谁这样做?