4 lines
185 B
Mathematica
4 lines
185 B
Mathematica
|
|
NSString *normal = @"http://foo bar/";
|
||
|
|
NSString *encoded = [normal stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet alphanumericCharacterSet]];
|
||
|
|
NSLog(@"%@", encoded);
|