On 2 Jun 2014, at 12:05 am, Peter W A Wood <[email protected]> wrote:

> On 1 Jun 2014, at 19:40, Igor de Oliveira Couto wrote:
> 
>> 1) How to decode from “quoted-printable” to normal text?  Is there a 
>> ready-made function somewhere?
> 
> From the dictionary:
> 
>       textDecode("A","UTF8”)

That function is what I needed to do the base64 decoding. I must convert from 
base64 to binary, and then use textDecode to convert from binary directly to 
unicode text:

textDecode(base64decode("UXVhbGljb3JwIFNhw7pkZQ==“),”UTF-8”)

Unfortunately, this does not help with quoted-printable encoded strings…

On 2 Jun 2014, at 2:00 am, Dar Scott <[email protected]> wrote:

> I think there are functions for quoted printable, but I forgot what they are.

Doing a search in the Dictionary for “decode”, yields: arrayDecode, 
base64Decode, binaryDecode, textDecode, uniDecode and URLDecode. None of these 
seem to do quoted-printable… :(

Has anyone written a custom function? I’d rather not re-invent the wheel, if 
it’s been done before…

--
Igor Couto
Sydney, Australia

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to