ASCII字符代码图2 [英] ASCII Character Codes Chart 2

查看:68
本文介绍了ASCII字符代码图2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想使用上面的字符代码图表,但我不知道如何设置字体(文档:Windows中出现的字符)

127取决于所选的字体。


例如,当我打印chr(205)时,我没有得到

中显示的那个图表2列表...


一步一步的方法将受到赞赏(在Windows窗体应用程序中)。


-

自1983年以来DOS下的超级基础程序员。绝对虚拟的VB.NET

Windows下的程序员!

Hello, I want to use the above characters codes chart but I dont know how to
set the typeface (documentation: The characters that appear in Windows above
127 depend on the selected typeface).

For example, when I print the chr(205), I am not getting the one shown in
the Chart 2 list...

A step by step approach will be appreciated (in a windows form application).

--
Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
programmer under Windows !

推荐答案

>您好,我想使用上面的字符代码图表,但我不知道如何
> Hello, I want to use the above characters codes chart but I dont know how to
设置字体(文档:Windows上面出现的字符取决于所选的字体)。
set the typeface (documentation: The characters that appear in Windows above
127 depend on the selected typeface).




沉默在这个问题上震耳欲聋。我一整天都在看它

希望得到一个答案,而且似乎没有人会来。


我认为问题在于代码页,我没看到.net

关于代码页。此外,它可能根本不是代码页 - 我不知道。


我希望某种善良的知识灵魂回答这个问题。



The silence is deafening on this question. I''ve been watching it all day
hoping for an answer, and it appears that none is forthcoming.

I think what is at issue is the code page, and I don''t see anything in .net
about code pages. Also, it may not be code pages at all - I don''t know.

I hope some kind and knowledgable soul answers this question.


" Marcel Saucier" <马*********** @ discussions.microsoft.com> schrieb
"Marcel Saucier" <Ma***********@discussions.microsoft.com> schrieb
您好,我想使用上面的字符代码图表,但我不知道如何设置字体(文档:
出现在Windows上面的字符127以上取决于选择的字体。

例如,当我打印chr(205)时,我没有得到图表2列表中显示的那个......

逐步的方法将被赞赏(在Windows窗体
应用程序中)。
Hello, I want to use the above characters codes chart but I dont
know how to set the typeface (documentation: The characters that
appear in Windows above 127 depend on the selected typeface).

For example, when I print the chr(205), I am not getting the one
shown in the Chart 2 list...

A step by step approach will be appreciated (in a windows form
application).



您使用GetString将字符代码(如205)转换为char

System.Text.Encoding类的函数。由于字符串存储为

Unicode,因此必须将字符代码从源代码页转换为

Unicode。有一些预定义的编码对象,比如

System.Text.Encoding.Default或System.Text.Encoding.ASCII(仅限7位!)。如果你需要一个不同的编码,可以通过调用

System.Text.Encoding.GetEncoding来创建它。例如:


导入System.Text

''...


Dim en As Encoding

Dim b(0)As Byte

Dim s As String


en = Encoding.GetEncoding(850)''Westeuropean(DOS)

b(0)= 205

s = en.GetString(b)

我想你指的是这个:
http://msdn.microsoft.com/library/de...es_chart_2.asp

这可能是代码页437(OEM USA) 。

Armin


You convert a character code (like 205) to a char by using the GetString
function of the System.Text.Encoding class. As Strings are stored as
Unicode, the character code must be converted from the source code page to
Unicode. There are some predefined Encoding objects, like
System.Text.Encoding.Default or System.Text.Encoding.ASCII (7 bit only!). If
you need a different encoding, create it by a call to
System.Text.Encoding.GetEncoding. Example:

Imports System.Text
''...

Dim en As Encoding
Dim b(0) As Byte
Dim s As String

en = Encoding.GetEncoding(850) ''Westeuropean (DOS)
b(0) = 205
s = en.GetString(b)
I guess you''re referring to this one:
http://msdn.microsoft.com/library/de...es_chart_2.asp

That''s probably code page 437 ("OEM USA").
Armin


你的技术有效但是,代码页437,角色205仍然没有

对应于ASCII字符代码图表2 ...


该图表的代码页号是多少?

-

自1983年以来DOS下的Super Basic程序员。绝对虚拟的VB.NET
Windows下的
程序员!

" Armin Zingler"写道:
Your technique works but, with code page 437, character 205 still do no
correspond to the ASCII Character Codes Chart 2...

What is the code page number of that Chart ?
--
Super Basic programmer under DOS since 1983. Absolutely dummy VB.NET
programmer under Windows !
"Armin Zingler" wrote:
" Marcel Saucier" <马*********** @ discussions.microsoft.com> schrieb
"Marcel Saucier" <Ma***********@discussions.microsoft.com> schrieb
您好,我想使用上面的字符代码图表,但我不知道如何设置字体(文档:
出现在Windows上面的字符127以上取决于选择的字体。

例如,当我打印chr(205)时,我没有得到图表2列表中显示的那个......

逐步的方法将被赞赏(在Windows窗体
应用程序中)。
Hello, I want to use the above characters codes chart but I dont
know how to set the typeface (documentation: The characters that
appear in Windows above 127 depend on the selected typeface).

For example, when I print the chr(205), I am not getting the one
shown in the Chart 2 list...

A step by step approach will be appreciated (in a windows form
application).



您使用GetString将字符代码(如205)转换为char
System.Text.Encoding类的功能。由于字符串存储为Unicode,因此字符代码必须从源代码页转换为
Unicode。有一些预定义的编码对象,如
System.Text.Encoding.Default或System.Text.Encoding.ASCII(仅限7位!)。如果您需要不同的编码,请通过调用System.Text.Encoding.GetEncoding来创建它。示例:

导入System.Text
''...

Dim en As Encoding
Dim b(0)As Byte
Dim s As String

en = Encoding.GetEncoding(850)''Westeuropean(DOS)
b(0)= 205
s = en.GetString(b)

我想你指的是这个:
http://msdn.microsoft.com/library/de...es_chart_2.asp
那可能是代码页437(OEM USA)。

Armin


You convert a character code (like 205) to a char by using the GetString
function of the System.Text.Encoding class. As Strings are stored as
Unicode, the character code must be converted from the source code page to
Unicode. There are some predefined Encoding objects, like
System.Text.Encoding.Default or System.Text.Encoding.ASCII (7 bit only!). If
you need a different encoding, create it by a call to
System.Text.Encoding.GetEncoding. Example:

Imports System.Text
''...

Dim en As Encoding
Dim b(0) As Byte
Dim s As String

en = Encoding.GetEncoding(850) ''Westeuropean (DOS)
b(0) = 205
s = en.GetString(b)
I guess you''re referring to this one:
http://msdn.microsoft.com/library/de...es_chart_2.asp

That''s probably code page 437 ("OEM USA").
Armin



这篇关于ASCII字符代码图2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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