title: How to convert Extended ASCII to decimal in Windows Forms C#?
body: <p>I am writing a windows application. am facing problem in converting <strong>Extended ASCII[128-256]</strong> to its decimal equivalent.</p>
  
  <p>when i receive the extended ASCII say for example "Œ" from a jar file, it comes into C# application like this : �. </p>
  
  <p>Can i know how to convert this to its decimal equivalent [i.e] 140. </p>
  
  <pre><code>string textToConvert = "Œ";
  Encoding iso8859 = Encoding.GetEncoding("iso-8859-1");
  Encoding unicode = Encoding.Unicode;
  byte[] srcTextBytes = iso8859.GetBytes(textToConvert);
  byte[] destTextBytes = Encoding.Convert(iso8859,unicode, srcTextBytes);
  char[] destChars = new char[unicode.GetCharCount(destTextBytes, 0, destTextBytes.Length)];
  unicode.GetChars(destTextBytes, 0, destTextBytes.Length, destChars, 0);
  System.String szchar = new System.String(destChars);
  
  MessageBox.Show(szchar);
  </code></pre>
  
  <p>Please help me. How should i proceed??</p>