NSString *re = [[sqlArray objectAtIndex:0] valueForKey:@"Question"];
question = [re stringByReplacingOccurrencesOfString:@"í" withString:@"'"];
question = [re stringByReplacingOccurrencesOfString:@"î" withString:@"'"];
question = [re stringByReplacingOccurrencesOfString:@"í" withString:@"'"];
question = [re stringByReplacingOccurrencesOfString:@"ì" withString:@"'"];
question = [re stringByReplacingOccurrencesOfString:@"ë" withString:@"'"];
NSLog(@"question : %@",question);
string is still not being replaced, it shows
question : Residentís with the longest length of stay are generally those who
as nslog.
what could be wrong?
Try this: