Encoding NSString for URL

2008-03-12 Thread JanakiRam
Hi All, I'm new to the encoding stuff in Mac. I've a requirement to make a call to CGI Script with some Text File Contents. I'm using NSURLRequest for making a synchronous call. Now my problem is i'm unable to encode my string to send it as URL. I've used couple of methods (

Re: Encoding NSString for URL

2008-03-12 Thread Jerry Krinock
On 2008 Mar, 11, at 23:56, JanakiRam wrote: CFURLCreateStringByAddingPercentEscapes...not encoding special characters such as @#$%* etc. CFURLCreateStringByAddingPercentEscapes only encodes the characters mentioned in RFC 2396, which is: All non-ASCII characters plus these fourteen: `