title: C# Arabic to English Code gives me error
body: <p>can some one help me to rectify this error i have am using VS2010 ASP.Net C#3.0 i found this could on net but it is not working as it give me the error as show in the Screen shot. I am not able to understand the error message</p>
  
  <p>Code reference from <a href="http://weblogs.asp.net/abdullaabdelhaq/archive/2009/06/27/displaying-arabic-number.aspx" rel="nofollow noreferrer">http://weblogs.asp.net/abdullaabdelhaq/archive/2009/06/27/displaying-arabic-number.aspx</a></p>
  
  <p>CODE : </p>
  
  <pre><code> protected void Button1_Click(object sender, System.EventArgs e)
      {   //Call Function
          this.Label1.Text = "Arabic Number : &lt;b&gt;" + TranslateNumerals(this.TextBox1.Text) + "&lt;/b&gt;";
      }
  
  
      public static string TranslateNumerals(string sIn)
      {
          System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
          System.Text.Decoder utf8Decoder = null;
          utf8Decoder = enc.GetDecoder();
          dynamic sTranslated = new System.Text.StringBuilder();
          char[] cTransChar = new char[2];
          byte[] bytes = {217,160 };
          // Start Converting characters into Arabic mode.
  
          char[] aChars = sIn.ToCharArray();
          foreach (char c in aChars)
          {
              if (char.IsDigit(c))
              {
                  bytes[1] = 160 + Convert.ToInt32(char.GetNumericValue(c));
                  utf8Decoder.GetChars(bytes, 0, 2, cTransChar, 0);
                  sTranslated.Append(cTransChar[0]);
              }
              else
              {
                  sTranslated.Append(c);
              }
          }
          return sTranslated.ToString();
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/TGHoM.png" alt="enter image description here"></p>