Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I open notepad, press alt + 131 and I can see â appeared.

Now, I do same thing in C#

Encoding.ASCII.GetString(new byte[] { 131 });

it returns a question mark, and of course it correct as its for 7 bit.

Then I iterated through all the encodings to know which one is returning â for 131 and I found several encodings.

But I want the actual one that is use by windows when we type its code using Alt key.

I guess its Encoding.GetEncoding(437), but I want to make sure.
Posted

1 solution

I used Character Map to find that <alt>131 or 0x83 gives â in the DOS United States character set. The actual character that is displayed will depend on the code set in use in command windows, and the selected font in Windows windows.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900