Possible Duplicate:
To which character encoding (Unicode version) set does a char object correspond?
I'm a little afraid to ask this, as I'm sure its been asked before, but I can't find it. Its probably something obvious, but I've never studied encoding before.
int Convert(char c)
{
return (int)c;
}
What encoding is produced by that method? I thought it might be ASCII (at least for <128), but doing the code below produced... smiley faces as the first characters? What? Definitely not ASCII...
for (int i = 0; i < 128; i++)
Console.WriteLine(i + ": " + (char)i);