Reading html with accented characters from a URL on iPhone
- by lbh
Hello,
I'm having trouble extracting the html from a website which contains accented characters. Specifically, there are French characters on the site. Currently I'm using:
NSString* html= [NSString stringWithContentsOfURL: [NSURL URLWithString: url] usedEncoding: &enc error:&error];
to get html from a URL. It works perfectly fine for any sites which are all English, but with a mostly English site with French characters it returns nothing. I've tried a few different types of encoding, but none have worked for me. Any suggestions?
Thanks.