Uniencode fails on some chars
Tuviah M Snyder
diskot123 at juno.com
Wed Apr 30 21:02:01 EDT 2003
>or drag and
>drop unicode text into a field
>Otherwise the converted text will be
>mojibake, if you are unlucky. Especially UTF8 is very bad. Most of all
time you
>get a rainbow cursor. It's very heavy garbage text.
most modern applications will drag text as unicode, and plain text. So
instead of guessing the format you can do something like:
on dragdrop
if "unicode" is among the items of keys(the dragdata) then set
the unicodetext of me to the dragdata["unicode"]
end dragdrop
Tuviah Snyder <tuviah at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Software at the Speed of Thought
More information about the use-livecode
mailing list