Created
April 10, 2009 09:29
-
-
Save ashtom/93017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How to encode NSData for a HTTP request | |
NSString *dataString = [[NSString alloc] initWithFormat:@"%@", someData]; | |
NSString *dataEncoded = [dataString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; | |
NSLog(@"Encoded data = %@", dataEncoded); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment