正确的磅符号ASCII值 [英] Correct ASCII value of Pound sign
本文介绍了正确的磅符号ASCII值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在检查英镑符号(£)的ASCII值.我找到了多个答案:
I am checking for the ASCII value of the pound sign (£). I've found multiple answers:
- http://www.ascii-code.com/说A3 = 163是ASCII码英镑符号的值.
- http://www.asciitable.com/说156是英镑符号,而163是其他符号字符.
- http://en.wikipedia.org/wiki/Pound_sign :Alt + 163表示和Alt + 156都是在美式键盘中输入井号的方法.我在这里假设163和156表示ASCII值. (但只有163个对我有用)
- http://www.ascii-code.com/ Says A3 = 163 is the ASCII value of the pound sign.
- http://www.asciitable.com/ Says 156 is the Pound sign and 163 is some other character.
- http://en.wikipedia.org/wiki/Pound_sign : Says Alt+163 and Alt+156 both are the ways to type pound sign in US keyboard. I assume here 163 and 156 means ASCII values. (But only 163 works for me)
正确的方法是什么?
推荐答案
井号没有ASCII码. ASCII仅在您链接的表中定义代码0-127;而在链接表中仅定义0-127.除此之外的所有东西都是扩展.您需要确定所使用的ASCII扩展名.
There is no ASCII code for the pound sign. ASCII only defines codes 0-127 in the tables you've linked; everything beyond that is extensions. You'll need to determine which extension to ASCII you're using.
英镑符号在Latin-1(又名ISO-8859-1)中为163,在代码页437 .它也有Unicode编号163,尽管您需要将其编码为一个以上的字节.
The pound sign has number 163 in Latin-1 (aka ISO-8859-1), and number 156 in code page 437. It also has number 163 in Unicode, though you'll need to encode it as more than one byte.
这篇关于正确的磅符号ASCII值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文