Chunk Expressions (see if my solutions is bad)
Ken Ray
kray at sonsothunder.com
Wed Sep 10 21:22:01 EDT 2003
How about using urlEncode()? That will strip out special characters and turn it into a single parameter that you can urlDecode to get back the original string...
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of
> Andre Garzia
> Sent: Tuesday, September 09, 2003 10:10 PM
> To: use-revolution at lists.runrev.com
> Subject: Chunk Expressions (see if my solutions is bad)
>
>
> Hi Folks,
>
> In the quest of finding some way to store an arbitary number of
> parameters for my XML-RPC Stack I decided to use Chunk Expressions. I
> decided to store each parameter as a line. I have a function that
> accept two paramenters pType which is the type of the parameter
> (string, boolean, integer...) and the other is the pParam which holds
> the actual value. My function assemble them in the format
> <type>value</type> so that become easy to assemble the XML
> Later, just
> pull the lines of gParam and loop. The first bug I thought I
> might have
> was the fact that the paramenters could have linefeeds inside them
> breaking my sweet poor man system. So I decide do Base64 Encode them
> just to take thoose linefeeds out. But I think Base64 wraps
> at 72 chars
> so this return-character-apearing-where-I-do-not-want-problem still
> possible. Should I change lineDelimiter? Should I store as item? Any
> advise?
>
> Cheers
> Andre Garzia 2003
> imac2 ibook p100 e uma torradeira....
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-> revolution
>
More information about the use-livecode
mailing list