title: Char to Hex in javascript
body: <p>Could anyone guide me on how to convert char to hex in javascript?<br/><br/>
  For example:</p>
  
  <blockquote>
    <p>"入力されたデータは範囲外です。" <br/>to
    <br/>"\u5165\u529B\u3055\u308C\u305F\u30C7\u30FC\u30BF\u306F\u7BC4\u56F2\u5916\u3067\u3059\u3002"</p>
  </blockquote>
  
  <p><a href="http://code.cside.com/3rdpage/us/javaUnicode/converter.html" rel="noreferrer">This site does it</a></p>
  
  <p>However I can not figure it out.</p>
  
  <p>Any suggestion.</p>
  
  <p>Thanks, Sarbbottam</p>