How to convert NSMutableData to NSString on iPhone?

Solution 1:

You can use the initWithData: initializer:

[[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];

Change the encoding to that of the source data.