0 votes
1.2k views
asked by (4k points)

HI

  I have UTF-8 encoded NSData from windows server and I want to convert it to NSString for iPhone. Since data contains characters (like a degree symbol) which have different values on both platforms, how do I convert data to string?

 

 

1 Answer

0 votes
answered by (3.1k points)

Hi

  NSString* newStr = [NSString stringWithUTF8String:[theData bytes]];

Categories

...