Removing linebreaks from base64encoded string

Michael Kann mikekann at yahoo.com
Fri Sep 9 21:36:19 EDT 2011


repeat for each line k of bad_ base_64_encoded_string
   put char 1 to 72 of k after good_ base_64_encoded_string
end repeat


--- On Fri, 9/9/11, Martin Koob <mkoob at rogers.com> wrote:

From: Martin Koob <mkoob at rogers.com>
Subject: Removing linebreaks from base64encoded string
To: use-revolution at lists.runrev.com
Date: Friday, September 9, 2011, 8:05 PM

I am trying to remove the line breaks from a base64 encoded string.   



In a livecode stack I tried
put base64encode(tJSONstring) into tEncodedext
replace "\r\n" with "" in tEncodedtext

That had no effect.

If I tried,

replace return with "" in tEncodedtext

That did remove the linebreaks.

With LiveCode Server (on-rev 3.5 engine)
put base64encode(tJSONstring) into tEncodedext
replace "\r\n" with "" in tEncodedtext

has no effect.

and

replace return with "" in tEncodedtext

also has no effect.

Is there another way to remove line breaks in this string?

Martin




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Removing-linebreaks-from-base64encoded-string-tp3803116p3803116.html
Sent from the Revolution - User mailing list archive at Nabble.com.

_______________________________________________
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



More information about the use-livecode mailing list