iphone - UTF8 from web content .xml file to NSString -


I can not find any way to convert some UTF 8 encoding into NSString.

I get some data from URL, this is an .xml file and here's their content:

   

How do I & amp; # 225; Some code that does not work:

  NSString * newStr = [[NSString alloc] initWithData: [NSData dataWithContentsOfURL: URL] Encoding: NSUTF8StringEncoding]  

;

Edit:

I am using the library

Finally I'm using decoded .xml

with Michael Waterfall

Comments