I’ve noticed that emojis in my app have stopped displaying properly on a UIWebView in iOS 5.
All characters are encoded for HTML when they are displayed and the output HTML is:
<p>Emoji (iOS 4): ��</p>
This UTF-8 encoded HTML is rendered correctly in a UIWebView in iOS 4, but not in 5:

I understand there have been some changes in iOS 5 with regards to emoji, but the emoji character that has been encoded into �� was generated on iOS 5, so the 2 byte characters should be correct. No other changes have taken place to the code so it’s definitely something introduced with iOS 5.
Any advice would be much appreciated and I’ll happily provide more information if required. Thanks.
I’ve had a response from the developer forums:
This explains the reason for the problem. I however, worked around the issue by only encoding a smaller subset of characters as the HTML document is in unicode.