那是什么编码? [英] what encoding is that ?

查看:149
本文介绍了那是什么编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打开记事本,按alt + 131,可以看到â出现.

现在,我在C#中做同样的事情

I open notepad, press alt + 131 and I can see â appeared.

Now, I do same thing in C#

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


它会返回一个问号,当然它会正确显示为7位.

然后,我遍历所有编码,以知道哪一个返回131.然后我发现了几种编码.

但是我想要当我们使用Alt键键入其代码时Windows使用的实际代码.

我猜想它是Encoding.GetEncoding(437),但我想确定一下.


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.

推荐答案

我使用字符映射表在DOS中找到了< alt> 131或0x83.美国字符集.显示的实际字符取决于在命令窗口中使用的代码集以及在Windows窗口中选择的字体.
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.


这篇关于那是什么编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆