Emoji and UIWebView in iOS 5

I noticed that emojis in my application stops displaying correctly in UIWebView in iOS 5.

All characters are encoded for HTML when they are displayed, and the output HTML:

<p>Emoji (iOS 4): &#55357;&#56850;</p>

This UTF-8 encoded HTML code renders correctly in UIWebView in iOS 4, but not in 5:

enter image description here

I understand that in iOS 5 there have been some changes regarding emoji, but the emoji character that was encoded in & # 55357; & # 56850; was created on iOS 5, so 2 byte characters must be correct. No other changes to the code occurred, so definitely something introduced with iOS 5.

Any advice would be greatly appreciated and I will be happy to provide you with additional information if required. Thank.

+5
1

:

HTML iOS 5 Safari 5.1 , 0xD800..0xDFFF (55296..57343) ( ). , HTML5. , , .

. (0xD83D, 0xDE12) 0x1F612. , :

&#x1f612; or &#128530;

. , , , HTML .

+10

All Articles