running this code I see that not all values of char (from 0 to 65534) correspond to a symbol. It is rigth? Or I’ve to do something differernt to show symbols different from a ‘square’?
Thank you all!
private void Form1_Load(object sender, EventArgs e)
{
char x = Char.MinValue;
do
{
listBox1.Items.Add(x + " - " + (int)x);
x++;
} while ((int)x < (int)Char.MaxValue);
}
That’s normal. There are at least three possible explanations for a character being displayed as a square:
Some characters may not be supported by the font the control uses.
Not all Unicode codepoints are assigned.