views:

60

answers:

5

Hi,

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 standard ?

Thanks for any help on this

+1  A: 

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

PigBen
+4  A: 

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)

Paul
+1  A: 

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.

Paulo Guedes
A: 

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

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

WearyMonkey
A: 

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

tim_yates
Thanks for the help everyone, think I have a better undrstanding now.