title: iOS 5: How to convert an Emoji to a unicode character?
body: <p>I want to convert an Emoji to a unicode character in iOS 5.</p>
  
  <p>For example, converting <img src="https://i.stack.imgur.com/Do6u5.png" alt="smiling face with open mouth and cold sweat"> to <code>\ue415</code>.</p>
  
  <p>I went to <strong>NSStringEncoding</strong> in <a href="http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html" rel="noreferrer">NSString Class Reference</a>.</p>
  
  <p>In iOS 4, <code>NSUTF16BigEndianStringEncoding</code> and <code>NSUTF32BigEndianStringEncoding</code> gave me <code>&lt;e415&gt;</code> and <code>&lt;0000e415&gt;</code>, respectively, which are quite close to what I want. </p>
  
  <p>In iOS 5, the results are different. It gaves <code>&lt;d83dde04&gt;</code> and <code>&lt;0001f604&gt;</code>.</p>
  
  <p>How can I get <code>\ue415</code> for <img src="https://i.stack.imgur.com/Do6u5.png" alt="smiling face with open mouth and cold sweat"> in iOS 5? Thank you.</p>