Character Encodings and Livecode fields

Richmond richmondmathewson at gmail.com
Sun Jan 26 13:19:57 EST 2014


On 26/01/14 20:02, Fraser Gordon wrote:
> On 26/01/2014 17:31, Richmond wrote:
>> I'm not sure that ALL Unicode chars are double-byte ones; possibly the
>> first 255 are not.
> It depends on the encoding. In UTF-16 encoding, all characters are
> either 2 bytes or 4 bytes. In UTF-8, they can be 1 (for the first 128
> characters), 2, 3 or 4 bytes long (depending on the character). LiveCode
> 6.x uses UTF-16 and should consequently have 2 byte unicode characters.
>
> Regards,
> Fraser
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

I have just uploaded a stack here: 
http://forums.runrev.com/viewtopic.php?f=5&t=18869&p=95344#p95344

which, I believe, successfully demonstrates that ASCII text does not get 
"promoted" [or otherwise mucked around with]
when moved into a Unicode text field.

Richmond.




More information about the use-livecode mailing list