I received an NSMutableData from a server and now I want to convert it to an NSString. Any ideas about how to do this?
You can use the initWithData:
initializer:
[[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
Change the encoding to that of the source data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With