iPhone Emoji Unicode Encoding UTF

2019-03-22 04:44发布

问题:

I'm encoding Unicode Emoji characters into a string and loading that into a webview..

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?

回答1:

NSUTF32StringEncoding did the trick, didn't see it on the list of encoding before.