How to convert NSMutableData to NSString on iPhone?

You can use the initWithData: initializer:

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

Change the encoding to that of the source data.

原文地址:https://www.cnblogs.com/luyinghuai/p/1954805.html