title: how to convert Unicode into character
body: <p>Hey I am trying to convert this unicode :</p>
  
  <pre><code>U+1F61D
  </code></pre>
  
  <p>into this character:</p>
  
  <pre><code> 
  </code></pre>
  
  <p>But I am unable to find a suitable way to do this in php, this site <a href="https://r12a.github.io/apps/conversion/" rel="nofollow noreferrer">https://r12a.github.io/apps/conversion/</a> is converting it very easily.</p>
  
  <p>To solve this I follow the instruction explain in this question : <a href="https://stackoverflow.com/questions/33547233/how-to-convert-emoji-from-unicode-in-php">How to convert Emoji from Unicode in PHP?</a></p>
  
  <p>When I tried this code I am getting weird character. I am unable to understand how to generate surrogate. </p>
  
  <p>I am using this code: </p>
  
  <pre><code>echo json_decode('"\u1F61D"');
  </code></pre>
  
  <p>This gives me this character:</p>
  
  <pre><code>ὡD
  </code></pre>
  
  <p>Here I want to generate surrogates for the above unicode so my question is different.</p>