【发布时间】:2014-08-30 23:45:21
【问题描述】:
我正在尝试从后端提取一个 JSON 文件,其中包含 emoji 的 unicode。这些不是旧的 unicode(例如:\ue415),而是跨平台工作的 unicode(例如:\U0001F604)。
这是一个被拉取的 json 示例:
[
{
"unicode": "U0001F601",
"meaning": "Argh!"
},
{
"unicode": "U0001F602",
"meaning": "Laughing so hard"
}
]
我很难将这些字符串转换为将在应用中显示为表情符号的 unicode。
非常感谢任何帮助!
【问题讨论】:
标签: ios xcode unicode nsstring emoji