I have encountered the same problem so I just replace all returns with some unusual character before storing, and then put them back when retrieving the data. I tend to use something like a paragraph marker (¶ - option-7 on a Mac) but to be extra careful, you'll need to check whether your data contains any of these before you do your replace.

Cheers,
Sarah

On Wednesday, September 10, 2003, at 01:17 pm, Andre Garzia wrote:

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
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution




_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to