I'm developing an iOS app and trying to create an NSURL for a PHP page, and I need to escape the apostrophe's for PHP with: \' Below is an example of a URL I tried to escape the apostrophe :
http:/www.name.com/receive.php?name=hello\'s
The problem is that the backslash character isn't allowed in NSURLs. And before anyone says, I already tried "\ \'" so that isn't the issue. The issue is with the backslash itself, I guess they just simply aren't allowed in NSURLs. How can I get around this?