title: ruby: unicode character decimal value to \uXXXX conversion? .ord method not working
body: <p>I'm trying to work with unicode characters, and the information provided by the string's .ord method doesn't help me.  I'm used to working with codes like "\uXXXX".</p>
  
  <pre><code>ruby-1.9.3-p0 :119 &gt; form[0]
  =&gt; "כ" 
  
  ruby-1.9.3-p0 :120 &gt; form[0].ord
  =&gt; 1499 
  ruby-1.9.3-p0 :121 &gt; puts "\u1499"
  ᒙ
  </code></pre>
  
  <p>...</p>
  
  <p>:-(</p>
  
  <p>The values yielded by .ord seem to correspond to the 'decimal points' referred to here:
  <a href="http://www.i18nguy.com/unicode/hebrew.html" rel="noreferrer">http://www.i18nguy.com/unicode/hebrew.html</a></p>
  
  <p>I don't know how to work with these values.  How do I get the \uXXXX code from that character?</p>
  
  <p>Thank you</p>