title: How to Check if a var contains unicode characters and convert them to emojis
body: <p>I want to convert given Unicode Chars into Emojis.
  From a function, I get a string and sometimes there are emojis in it but as Unicode (like this \ud83c\uddee\ud83c\uddf9).
  So I need to check first if this functions contains these Unicode emoji chars and then I need to convert them into emojis.</p>
  
  <p>With this line of code, I tried to remove these Unicode chars, but it doesn't work.
  But now I need to find a method to convert these Unicode chars into Emojis and not removing them!</p>
  
  <pre><code>var fullnameWOE = fullname[1].replace(/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])/g, '')
  </code></pre>
  
  <p>EDIT: still found no method to solve this problem... 
  I have to add that I'm getting this string with name containing emoji from a php file, so if there are any opportunities to use php to solve it?</p>