Page 1 of 1

Unicode Issue

Posted: Tue Jul 29, 2014 6:59 am
by WaltBrown
I have been trying to put a Unicode character into a field. The character in this case is the Smiley Face, 9066, 0x236A. I have set the field to Arial because that character is in the font file on the system. I have tried all kinds of permutations of useUnicode, uniDecode, uniEncode, the unicodeText of, binaryEncode, put unicode text, "Unicode" as the language selector, etc, etc. and I can't get the smiley face to appear in the field.

Thanks,
Walt

Re: Unicode Issue

Posted: Tue Jul 29, 2014 10:13 pm
by [-hh]
..........

Re: Unicode Issue

Posted: Wed Jul 30, 2014 6:45 am
by WaltBrown
Thanks. What I was trying to make was a font explorer to look at all available Unicode code pages, so I guess that's a no-go for the time being.

Re: Unicode Issue

Posted: Wed Jul 30, 2014 9:47 am
by [-hh]
..........

Re: Unicode Issue

Posted: Wed Jul 30, 2014 4:54 pm
by Peter Wood
You can do this is LiveCode < 7:

[code]
on mouseUp
set the useUnicode to true
set the unicodeText of Field "Smiley" to numToChar(55357) & numToChar(56836)
end mouseUp
[/code]

It doesn't display a smiley as it seems non of the fonts supplied with LiveCode include the colour emoticons. (I know the field contains the correct character, when I paste the field contents into a Cocoa App the smiley is displayed>)

Re: Unicode Issue

Posted: Wed Jul 30, 2014 7:52 pm
by [-hh]
..........

Re: Unicode Issue

Posted: Thu Jul 31, 2014 1:16 pm
by WaltBrown
Thanks Hermann, great info!
Walt