best/fastest way to tell if a field contains unicode text?

Geoff Canyon gcanyon at gmail.com
Thu Mar 20 11:37:59 EDT 2014


I have a field that has been populated by setting the unicodetext. Some
lines actually need unicode -- umlauts, enye, etc. -- and others are plain
ascii.

What's the most efficient way to count how many lines are plain and how
many actually need unicode?

The best thing I've come up with so far is to count the length of each
line, and then get the HTML text and compare the lengths minus the <p> and
</p>.



More information about the use-livecode mailing list