title: how to convert string from ascii to hexadecimal in javascript or jquery
body: <p>I want to convert string from ascii to hexadecimal</p>
  
  <p>I tried:</p>
  
  <pre><code>var stringing = "";
  jQuery.each("SomeText".split(""), function (i, data) {
      stringing = stringing + data.charCodeAt(0)
  });
  </code></pre>
  
  <p>But this output is not the same as what I get at
  <a href="http://www.asciitohex.com/" rel="nofollow">http://www.asciitohex.com/</a></p>
  
  <p>I need to get the same values because only that works in KQL in sharepoint </p>