You can use the initWithData:
initializer:
[[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
Change the encoding to that of the source data.
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/archive/2011/02/15/1954805.html