Double byte trouble
bobs at twft.com
Tue Aug 16 15:30:23 EDT 2011
I'm going to say that if you were to delete the first char of a 2 byte unicode char and then put more unicode text after it, things would not go so well, but I am just guessing.
On Aug 16, 2011, at 12:06 PM, Richmond Mathewson wrote:
> I did this:
> set the useUnicode to true
> set the unicodeText of fld "INN" to numToChar(69)
> and, unsurprisingly, an 'E' appeared in fld "INN"
> when I then did this:
> delete char 1 of fld "INN" 'E' vanished; again, unsurprisingly
> when I put a spot of unicodeText in my fld "INN"
> the "delete char 1" script MADE THE FIRST UNICODE CHAR vanish.
> If that is so, why do I have to refer to double-byte unicode chars as "chars 1 - 2" ????
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode