How can I encode this url to be displayed in a UIWebview:
http://de.wikipedia.org/?search=Bevölkerungsentwicklung
I tried:
-stringByAddingPer
I found also that for some North European characters, NSISOLatin1StringEncoding fits better. This one gives me a better result
- (void) testEncoding {
NSString * urlString = @"http://example/path/fileName_blå.pdf";
urlString = [urlString stringByAddingPercentEscapesUsingEncoding:NSISOLatin1StringEncoding];
NSURL * url = [NSURL URLWithString:urlString];
NSLog(@"URL: %@", url);
}