本文介绍了iPhone表情符号Unicode编码UTF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将Unicode Emoji字符编码为字符串并将其加载到webview中..
I'm encoding Unicode Emoji characters into a string and loading that into a webview..
我正在使用的编码NSUTF8StringEncoding但是表情符号字符只是显示为像Δ-ÓÔ的Jiberish unicode符号那么我需要什么编码?
for the encoding I'm using "NSUTF8StringEncoding" But the emoji characters just show up as jiberish unicode symbols like ∆¬ÓÔÓ˝ˆ So what encoding do I need?
推荐答案
NSUTF32StringEncoding
做了这个技巧,之前没有在编码列表中看到它。
NSUTF32StringEncoding
did the trick, didn't see it on the list of encoding before.
这篇关于iPhone表情符号Unicode编码UTF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!