numToChar with socking great numbers

Richmond richmondmathewson at gmail.com
Mon Jan 13 05:43:47 EST 2014


On 13/01/14 12:24, Fraser Gordon wrote:
> Hi Richmond,
>
> My bad, should have been:
>
> numtoChar(55357) & numToChar(56832)
>
> Note that current versions of LiveCode don't really treat surrogate pairs properly - each codeunit of the pair is treated as a character so it is possible to do things like apply a style that only affects one of the two units. When this happens, the string gets split between the pair and it no longer works properly so be careful.
>
> As I like to harp on about, this will be fixed in 7.0.
>
> Regards,
> Fraser
>
>
>

Well, the scriptEditor didn't throw a bluey this time, but I didn't get 
the smiley face at Unicode 1F600,

but 6 squares with crosses in them. [Linux]

So this probably doesn't work properly.

Richmond.






More information about the use-livecode mailing list