【发布时间】:2011-10-25 21:39:02
【问题描述】:
我有一个 LATIN1 字符串。
Artîsté
当我对其进行 json_encode 时,它会转义一些字符并将其转换为单字节 UTF8。
Art\u00eest\u00e9
如果我只是 json_decode 它,我相信它是 UTF8 解码
Artîsté
为了取回我的原始字符串,我必须调用 utf8_decode
Artîsté
有没有办法在 Objective-c 中处理这种转换?
【问题讨论】:
-
json_encode、json_decode 和 utf8_decode 到底是什么?你实现的功能/方法?您正在使用的某个库?
标签: objective-c utf-8 utf8-decode