title: Javascript, convert unicode string to Javascript escape?
body: <p>I have a variable that contains a string consisting of Japanese characters, for instance;</p>
  
  <p><strong>"みどりいろ"</strong></p>
  
  <p>How would I go about converting this to its Javascript escape form? </p>
  
  <p>The result I am after for this example specifically is:</p>
  
  <p><strong>"\u306f\u3044\u3044\u308d"</strong></p>
  
  <p>I'd prefer a jquery approach if there's a variation.</p>