Removing linebreaks from base64encoded string

Martin Koob mkoob at rogers.com
Fri Sep 9 21:05:56 EDT 2011


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.




More information about the use-livecode mailing list