title: How To Convert Arabic Number Ascii Code to String in ROR?
body: <p>I want to convert my English Numbers Pager to an Arabic one, 
  I had something like</p>
  
  <pre><code>&lt;% @engnum = "0123456789" %&gt;
  &lt;% @arabnum = "٠١٢٣٤٥٦٧٨٩" %&gt;
  
  &lt;%= (@pagenumber).to_s.gsub(/./) {|s| @arabnum[@engnum.index(s)]} %&gt;
  </code></pre>
  
  <p>But this shows the ascii number not the actual number i need</p>
  
  <p>Any idea how to show the actual string (Number) 
  Remember that it's arabic numbers and <code>@arabnum[@engnum.index(s),1]</code> didn't work</p>
  
  <p>Thanks in advance</p>