Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
Hey, Thanks! It seems that all I had to do sanitize was encode &'s <'s >'s "'s and ''s, and then just do my normal percent encoding, and everything is now working great! Thanks! Joe On Jul 23, 2010, at 2:11 PM, Kyle Sluder wrote: > On Fri, Jul 23, 2010 at 11:54 AM, Joe Turner wrote: >> Howev

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Kyle Sluder
On Fri, Jul 23, 2010 at 11:54 AM, Joe Turner wrote: > However, now it seems my issue is with &'s in the data itself from the > property list. If the plist contained an "&" somewhere, everything after that > point is cut off (which makes sense). Is there any way around this? It seems > I have to

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
However, now it seems my issue is with &'s in the data itself from the property list. If the plist contained an "&" somewhere, everything after that point is cut off (which makes sense). Is there any way around this? It seems I have to percent escape the data before posting, which (the only way

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Kyle Sluder
On Fri, Jul 23, 2010 at 9:34 AM, Joe Turner wrote: > Hey, > > No one is requiring me to send a string–I do indeed send it as data, but I > must convert values from string to data. Like, I have a title field, in which > I must convert the title to NSData. But since there are a bunch of arguments

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
Hey, No one is requiring me to send a string–I do indeed send it as data, but I must convert values from string to data. Like, I have a title field, in which I must convert the title to NSData. But since there are a bunch of arguments like this, I just make a string like @"arg1=something&arg2=s

Re: NSPropertyListSerialization and string encoding

2010-07-22 Thread Kyle Sluder
On Thu, Jul 22, 2010 at 6:25 PM, Joe Turner wrote: > I'm having an issue with NSPropertyListSerialization, where I will call > dataWithPropertyList:format:options:error:, to get the data from a property > list–this part goes fine. However, then I need the data as a string, so I can > upload it

Re: NSPropertyListSerialization and string encoding

2010-07-22 Thread James Walker
On 7/22/2010 6:25 PM, Joe Turner wrote: I'm having an issue with NSPropertyListSerialization, where I will call dataWithPropertyList:format:options:error:, to get the data from a property list–this part goes fine. However, then I need the data as a string, so I can upload it to a web service. Ho

NSPropertyListSerialization and string encoding

2010-07-22 Thread Joe Turner
Hello, I'm having an issue with NSPropertyListSerialization, where I will call dataWithPropertyList:format:options:error:, to get the data from a property list–this part goes fine. However, then I need the data as a string, so I can upload it to a web service. However, when I call initWithData: