This led me on to trying textDecode() which I tried, using the LiveCode dictionary as reference, without success. So I went to the basics (even if the first idea is stupid I’d still like to know how to use textDecode).
The syntax for textDecode in the dictionary is
The simplest example of this in the dictionary istextDecode(binaryData, encoding)
which raises questions:textDecode("A","UTF8")
Is “A” valid as binary data? (I thought binary was 1s & 0s)
If it is valid, what should be the output?
ps: There is no encoding UTF8 in the dictionary so assume this should be UTF-8
pps: The encoding listing in the Parameters section has “the encoding of the original data” then a list followed by “One of the following items” then another list. You'd need to see it. Does it make any sense?
Thanks for any replies.