If you get the htmlText of a char in a unicode mixed field (i.e. containing single & double byte chars), there is an attribute of the <p></p> tag that tells you the font. If you get char 1 of a double byte char, that font attribute of the paragraph tag will (in my experience) contain "unicode" as item 2 of the font.
Thus, try "put the htmlText of char 1 of fld SomeUnicodeField into msg". That at least allows one to detect if a char is unicode or not, even if one only gets hold of one of the two bytes that make up the char. I think this is the simplest (albeit clumsy) way to detect the nature of a char in a run of mixed text. Bernard On Tue, Aug 16, 2011 at 6:48 PM, Richmond Mathewson <richmondmathew...@gmail.com> wrote: > As I have to develop a script that determines whether a char is a > single-byte char or the first half of a double-byte char . . . ouch . . . > this is probably fairly важно, to use a rather useful Bulgarian word . . . _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode