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

Phil Davis revdev at pdslabs.net
Thu Mar 20 13:36:31 EDT 2014


Get the styledText of a field and check it for any "unicodeText" 
elements. (Or will that be meaningless in 7.0 when everything is Unicode?)

Phil


On 3/20/14, 8:37 AM, Geoff Canyon wrote:
> 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>.
> _______________________________________________
> 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
>

-- 
Phil Davis





More information about the use-livecode mailing list