title: Convert string to devnagari unicode
body: <p>I am trying to get the <code>Devnagari Unicode</code> of a given string.</p>
  
  <p><a href="https://codepoints.net/U+0924" rel="nofollow noreferrer">https://codepoints.net/U+0924</a></p>
  
  <p>I have string = "<strong>त</strong>"</p>
  
  <p>How do I get its Unicode value (\u0924)?</p>
  
  <p>I would like to get it in <code>php</code> or <code>javascript</code>.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Also, string = "<strong>tkfO{</strong>". This should return <code>\u0924\u092A\u093E\u0908</code>.</p>
  
  <ol>
  <li><a href="https://codepoints.net/U+0924" rel="nofollow noreferrer">https://codepoints.net/U+0924</a></li>
  <li><a href="https://codepoints.net/U+092A" rel="nofollow noreferrer">https://codepoints.net/U+092A</a></li>
  <li><a href="https://codepoints.net/U+093E" rel="nofollow noreferrer">https://codepoints.net/U+093E</a></li>
  <li><a href="https://codepoints.net/U+0908" rel="nofollow noreferrer">https://codepoints.net/U+0908</a></li>
  </ol>