开发者

Differing ascii tables code values?

I'm trying to display an extended character on a mobile phone. The ascii value of 160 on my windows machine is á.

According to http://slayeroffice.com/tools/ascii/ the ascii value of á is 225. Which one is correct ?

Can different hardware devices such as phones have a different ascii character set or do they all follow a standa开发者_高级运维rd ?

Thanks for any help on this


Ascii only defines codes 0..127. After that you're in the world of code pages. You need to find out what code page is in use by Windows (it can vary) and your mobile phone (it may well vary there too)


ASCII codes only go up to 127. Anything beyond that is an extended code, and there is no single standard for those.


There ascii chars from 32 to 127 are common to all different ascii tables. Chars from 128 to 255 are extended ascii and there are several variatons of them.


Joel on Software has an excellent article about strings which you should read.

http://www.joelonsoftware.com/articles/Unicode.html


This page on wikipedia describes the different Alt Codes

If you type [alt]-0225 you get á (as it's using the ANSI code page that matches the current input locale -- windows_1252)

Without the leading 0, it's using DOS Compatability mode, and therefore a different Code Page

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜