如何确定这个字符串是什么编码?
Sometimes, it’s the little things that make us the happiest.
最佳答案
它是 UTF-8 解码为 Latin-1 编码为 UTF-8 解码为 CP1252。
>>> u'’'.encode('cp1252').decode('utf8').encode('latin1').decode('utf8')
u'\u2019'
说真的……这是谁干的?
关于php - 这是什么编码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4952595/