title: Convert UTF-8 (Bytes) Emoji Code to Emoji icon as a text
body: <p>I am getting this below string as a response from WS API when they send emoji as a string:</p>
  
  <pre><code>let strTemp = "Hii \\xF0\\x9F\\x98\\x81"
  </code></pre>
  
  <p>I want it to be converted to the emoji icon like this -> <code>Hii </code></p>
  
  <p>I think so it is coming in UTF-8 Format as explained in the below Image: <a href="https://apps.timwhitlock.info/emoji/tables/unicode" rel="nofollow noreferrer">Image Unicode</a>
  <a href="https://i.stack.imgur.com/2z0x4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2z0x4.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>I have tried decoding it Online using  <a href="https://www.browserling.com/tools/utf8-decode" rel="nofollow noreferrer">UTF-8 Decoder</a></p>
  </blockquote>
  
  <p>And i got the emoticon Successfully decoded</p>
  
  <p><strong>Before Decoding:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/5DPHK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5DPHK.png" alt="enter image description here"></a></p>
  
  <p><strong>After Decoding:</strong>
  <a href="https://i.stack.imgur.com/Goo5j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Goo5j.png" alt="enter image description here"></a></p>
  
  <p>But the issue here is I do not know how to work with it in Swift.</p>
  
  <p>I referred following link but it did not worked for me. </p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/44220794/swift-encode-decode-emojis">Swift Encode/decode emojis</a></p>
  </blockquote>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks.</p>