alt组合键 [英] alt Key combination

查看:102
本文介绍了alt组合键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以给我代码alt + 156 incode谢谢

Can anyone please give me the code for "alt+156" incode Thanks

推荐答案

嗨Harry,


嗯???


不,我不能,因为这取决于你的代码页对我来说将是'/ b'b'''''字符。

你是什么试图做什么?

2005年3月7日星期一14:24:47 +0200,Harry< ob ***** @ absamail.co.za>写道:
Hi Harry,

Huh???

No, I can''t, because that depends on your codepage which for me would be
the ''£'' character.
What are you trying to do?
On Mon, 7 Mar 2005 14:24:47 +0200, Harry <ob*****@absamail.co.za> wrote:
任何人都可以给我代码alt + 156 incode谢谢
Can anyone please give me the code for "alt+156" incode Thanks




-

快乐编码!

Morten Wennevik [C#MVP]



--
Happy Coding!
Morten Wennevik [C# MVP]


我有一个将文本文件写入手机的应用程序。当我在手机上阅读这个文本文件时,有一个£,我有另一个角色

在它面前,这是一个高于它的A。例如A£

我写入该文件的代码是:

sw.WriteLine(PurchasePrice.ToString("£#,0"));

在PC上查看文本文件时,我没有得到这个特殊字符。

这是我在文本文件中看到的:购买价格:10英镑
" Morten Wennevik" <莫************ @ hotmail.com>在消息中写道

news:opsm9o2ojgklbvpo @ pbn_computer ...
I have an application which writes a text file to the phone. When I read
this text file on the phone, and there is a £, I have another character
infront of it which is an A with ^ above it. e.g. A£
My code to write to the file is:
sw.WriteLine (PurchasePrice.ToString("£ #,0"));
I don''t get this particular character when viewing the text file on the PC.
This is what I see on the text file: "Purchase Price:£ 10"
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsm9o2ojgklbvpo@pbn_computer...
嗨Harry,

嗯???

不,我不能,因为这取决于你的代码页对我而言是'''''字符。
你想做什么?

2005年3月7日星期一14:24:47 + 0200,Harry< ob ***** @ absamail.co.za>写道:
Hi Harry,

Huh???

No, I can''t, because that depends on your codepage which for me would be
the ''£'' character.
What are you trying to do?
On Mon, 7 Mar 2005 14:24:47 +0200, Harry <ob*****@absamail.co.za> wrote:
任何人都可以给我代码alt + 156 incode谢谢
Can anyone please give me the code for "alt+156" incode Thanks



-
快乐的编码!
Morten Wennevik [C#MVP]



--
Happy Coding!
Morten Wennevik [C# MVP]



我怀疑这是一个编码问题,虽然我不知道你为什么然后

就能看到''£''。


EUREKA !!!

我已成功设法使用这段

代码重现您的错误


string s ="价格是:£10";

byte [] b = Encoding.UTF8.GetBytes(s);

string t = Encoding.UTF7.GetString(b);

MessageBox.Show(s +" \\ n" + t);


t事实上价格是:?£10;


根据您将文字发送到手机的方式,检查编码,邮件

消息通常是UTF7编码,而网络通常是UTF8。


-

快乐编码!

Morten Wennevik [C# MVP]
I suspect this is an encoding problem, although I''m not sure why you then
would be able to see ''£'' at all.

EUREKA!!!

I have successfully managed to reproduce your error using this piece of
code

string s = "The price is: £ 10";
byte[] b = Encoding.UTF8.GetBytes(s);
string t = Encoding.UTF7.GetString(b);
MessageBox.Show(s + "\r\n" + t);

t is in fact "The price is: ?£ 10";

Depending on how your send the text to the phone, check the encoding, mail
messages are often UTF7 encoded while the web otherwise is usually UTF8.

--
Happy Coding!
Morten Wennevik [C# MVP]


这篇关于alt组合键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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