KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to get the percent encoded string for these specific letters, how to do that in objective-c? Reserved characters after percent-encoding ! * ' ( ) ; : @ & = + $ , / ? # [ ] %21 %2A %27 %28 %29 %3B %3A %40 %26 %3D %2B %24 %2C %2F %3F %23 %5B %5D Percent-encoding wiki Please test with this string and see if it do work: myURL = @"someurl/somecontent" I would like the string to look like: myEncodedURL = @"someurl%2Fsomecontent" I tried with the stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding already but it does not work, the result is still the same as the original string. Please advice.
Tags (comma-separated)
Save Edits
Cancel