I need to compare an NSString that that has foreign accents, like á, à, ã, ç, ô, é, í, etc., but logging the string messes up the characters that have the accents.
How do I pass the entire NSString for comparison, like this:
if (myString == @"Elevação")
{
do something nice...
}
The logging I’m getting, using NSLog(@"myString = %@", myString); from the above code is myString = Eleva..o
Thanks for your help.
Try
[someString isEqualToString:someOtherString];