Disappearing (Euro) Dollars

Martin Baxter martin at materiaprima.fsnet.co.uk
Tue Apr 20 14:15:15 EDT 2004


>Hi All,
>
>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.
>

Rob,

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".

HTH

Martin Baxter





More information about the use-livecode mailing list