Unicode and the higher planes of existence.

J. Landman Gay jacque at hyperactivesw.com
Wed Dec 12 16:34:24 EST 2012


On 12/12/12 2:53 PM, Richmond wrote:
>
> on mouseUp
>    set the useUnicode to true
>    set the unicodeText of fld "f1" to numToChar(65940)
> end mouseUp
>
> and when I click on the button I get nothing like anything that should
> appear (a capital X with a bar through its middle),
> but something that resembles a badly deformed Hebrew 'Ain'.

Docs say: If the useUnicode property is set to true, the charToNum 
function returns an integer between zero and 65535.

So it's out of range. It might be doing what it does if useunicode is 
false -- setting the value to the number div 255.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list