I am writing a windows application. am facing problem in converting Extended ASCII[128-256] to its decimal equivalent.
when i receive the extended ASCII
I think you are looking for something like this
String str="œ";
var bytes = Encoding.GetEncoding("Windows-1252").GetBytes(s);
string binStr = string.Join("", bytes.Select(b => Convert.ToString(b, 2)));
int decimalEquivalent=Convert.ToInt32(binStr,2);
Console.WriteLine(decimalEquivalent);
this is working for ASCII [128-255]