In my application I have a textbox where you can enter ASCII characters that are displayed. If I type "عع" I typed the code in 1593 and 1593 is shown , but ASCII code "ﻋ" and "ﻊ" are different!!
How do I show the difference?
Thanks
my code :
byte[] asciiBytes = Encoding.UTF8.GetBytes(textBox1.Text);
string s = "";
for (int j = 0; j < asciiBytes.Length; j++)
{
s += ((int)asciiBytes[j]).ToString() + ", ";
}
MessageBox.Show(s);
My Arabic is a little rusty, but those both seem to be the letter Ain (Unicode Character 'ARABIC LETTER AIN'), which is represented by code point 1359.
The reason they appear differently is because Unicode 1359, Ain, is a combining character, and the appearance is partly dictated by whether it is preceded or followed by other characters.