ASCII字符从0x21到0xff [英] ASCII charcters from 0x21 to 0xff

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

问题描述

大家好。


我想要做的是使用标签创建一个控制数组(我已经想到了如何创建一个控制数组的
) 1个标签等于ASCII字体
它显示的
字符。我发现的是每个字体字符从

0x79到0xA0转换为字符串包含4面块

字符。我想成为所有单独的角色。使用以下内容:

编码u16LE = Encoding.Unicode;


char [] DisplayCount = new char [0xff-0x20];


for(int i = 0; i< 0xff - 0x20; i ++)

{


DisplayCount [i ] = Convert.ToChar(i + 0x21);


}


bytes = u16LE.GetBytes(DisplayCount);


我试过了:

aLabel.Text = Convert.ToString(Convert.ToChar(bytes [2 *(this.Count - 1)]));


aLabel.Text = String.Format(" {0}",

Convert.ToChar((bytes [2 *(this.Count-1)]) ));


aLabel.Text =(Convert.ToChar((bytes [2 *(this.Count-1)]))。ToString();


aLabel.Text = Convert.ToChar(this.Count + 0x20).ToString();


所以,我认为是相关的是字符串。有人提出

的建议吗?


Scott

Hi all.

What I want to do is create a control array using labels (I already figure
out how to create a control array) with 1 label equal to the ASCII font
character it displays. What I have found out is every font character from
0x79 to 0xA0 that get converted to a string contains the 4 sided block
character. I want to be all separate characters. Using the following:
Encoding u16LE = Encoding.Unicode;

char[] DisplayCount = new char[0xff-0x20];

for (int i = 0; i < 0xff - 0x20; i++)

{

DisplayCount[i] = Convert.ToChar(i + 0x21);

}

bytes = u16LE.GetBytes(DisplayCount);

I have tried:
aLabel.Text = Convert.ToString(Convert.ToChar(bytes[2 * (this.Count - 1)]));

aLabel.Text = String.Format("{0}",
Convert.ToChar((bytes[2*(this.Count-1)])));

aLabel.Text = (Convert.ToChar((bytes[2*(this.Count-1)])).ToString();

aLabel.Text = Convert.ToChar(this.Count + 0x20).ToString();

So, I think is it is related is the string. Could somebody offer a
suggestion?

Scott

推荐答案

" Scott Starker"< Sc *********** @ sil.org>写道n消息

新闻:eU **************** @ TK2MSFTNGP10.phx.gbl ...
"Scott Starker" <Sc***********@sil.org> wrote in message
news:eU****************@TK2MSFTNGP10.phx.gbl...
所以,我认为它是相关的是字符串。有人可以提供
建议吗?
So, I think is it is related is the string. Could somebody offer a
suggestion?




您使用的字体没有这些字符。你需要找到一个

字体。


Michael



The font you are using does not have these character. You need to find a
font that does.

Michael


没有。我不相信。这种方式的所有字体都包括ANSI字体。


" Michael C" < MC ***** @ NOSPAMoptushome.com.au>在消息中写道

news:OG ************** @ TK2MSFTNGP09.phx.gbl ...
No. I don''t believe so. All the fonts are this way include the ANSI fonts.

"Michael C" <mc*****@NOSPAMoptushome.com.au> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
" Scott Starker" <钪*********** @ sil.org>在消息中写道
新闻:eU **************** @ TK2MSFTNGP10.phx.gbl ...
"Scott Starker" <Sc***********@sil.org> wrote in message
news:eU****************@TK2MSFTNGP10.phx.gbl...
所以,我认为是相关的是字符串。有人可以提供
建议吗?
So, I think is it is related is the string. Could somebody offer a
suggestion?



您使用的字体没有这些字符。你需要找到一个
字体。

Michael



The font you are using does not have these character. You need to find a
font that does.

Michael



" Scott Starker" <钪*********** @ sil.org>在消息中写道

news:%2 **************** @ TK2MSFTNGP14.phx.gbl ...
"Scott Starker" <Sc***********@sil.org> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No。我不相信。所有字体都是这种方式包括ANSI字体。
No. I don''t believe so. All the fonts are this way include the ANSI fonts.




有些字体至少会有一些这些字符。


迈克尔



Some fonts at least will have some of these chrs.

Michael


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

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