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

Fraser Gordon fraser.gordon at runrev.com
Thu Mar 20 11:47:12 EDT 2014


On 20 Mar 2014, at 15:37, Geoff Canyon <gcanyon at gmail.com> wrote:

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

Out of interest - why are you trying to do this? I ask because trying to do so may not be useful in future versions of LiveCode.

In LiveCode 7.0, all text is Unicode and there is no such thing as "non-Unicode text". There are ways to convert text to and from legacy 8-bit encodings (like MacRoman) when doing I/O to files/sockets/processes/etc but (in the engine at least) all text is Unicode.

Regards,
Fraser





More information about the use-livecode mailing list