Arrays and TextEncode/Decode

Monte Goulding monte at sweattechnologies.com
Fri Oct 16 15:27:32 EDT 2015


> On 17 Oct 2015, at 6:03 am, Peter Haworth <pete at lcsql.com> wrote:
> 
> I have an array that can contain Unicode characters in either it's keys or
> key values. I arrayEncode the array and write out to a file.
> 
> Should I textEncode the keys/values before arrayEncoding the array and then
> textDecode the keys/values when reading it back in and arrayDecoding it?

It depends on if you are using the old arrayEncode format and need interoperability with old versions of LC. If it’s just 7+ then what was a string before arrayEncode will be a string after arrayDecode.


More information about the use-livecode mailing list