Encoding NSString for URL
Encoding NSString for URL
- Subject: Encoding NSString for URL
- From: JanakiRam <email@hidden>
- Date: Wed, 12 Mar 2008 12:26:51 +0530
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 ( one from cocoa -
stringByAddingPercentEscapesUsingEncoding and another one from
CoreFoundation CFURLCreateStringByAddingPercentEscapes) , but they are not
encoding special characters such as @#$%&* etc..... .
Can any one provide some pointers on these. Please help me to solve this.
Thanks in Advance.
-JanakiRam.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden