Disappearing (Euro) Dollars
martin at materiaprima.fsnet.co.uk
Tue Apr 20 13:15:15 CDT 2004
>I have a text file containing the Euro currency symbol. I'd like to
>tell you what that character is; however, if I copy it from the text
>file and paste in in the Message Box:
> put charToNum("[my pasted character]")
>the Message Box changes to
> put charToNum(" [numToChar(172)]")
>and the result is 32.
It may help you to know that..
The euro character is unicode 20AC (in hex)
It looks like your paste results in a double byte
byte 1 = ascii 32 (hex 20)
byte 2 = ascii 172 (hex AC)
The htmltext probably reads €
The behaviour of chartonum faced with this 2 byte character is "innaresting".
More information about the use-livecode