title: Best way to convert English numbers to Arabic
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5316131/convert-string-to-another-locale-in-java">Convert String to another locale in java</a>  </p>
  </blockquote>
  
  
  
  <p>I want to convert a <code>java</code> <code>String</code> that contains english numbers to arabic one's so i make this </p>
  
  <pre><code>int  arabic_zero_unicode= 1632;
  String str = "13240453";
  StringBuilder builder = new StringBuilder();
  
  for(int i =0; i &lt; str.length(); ++i ) {
      builder.append((char)((int)str.charAt(i) - 48+arabic_zero_unicode));
  }
  
  System.out.println("Number in English : "+str);
  System.out.println("Number In Arabic : "+builder.toString() );
  </code></pre>
  
  <p>the out put </p>
  
  <pre><code>Number in English : 13240453
  Number In Arabic : ١٣٢٤٠٤٥٣
  </code></pre>
  
  <p>is there another more efficient  way to do this ?</p>