I’m actually using a UISearchbar for make some queries on a SQLite database. The main problem is when I put an accent like ‘é’ with the keyboard, this accent is totally wrong. With breakpoints I have ‘.’ instead of ‘é’ and on the log console I have ‘√©’.
Is there a way to use accent instead of using some tricks like remove the accent?
The variable that hold your string is probably correct. NSLog doesn’t know the encoding used for the string and use the default one. Which one did you use – UTF8? If yes: NSLog(@”%@”, [yourString UTF8String]); should display the string you are expected.