0

Well, I am from Spain and my Last Name is González (with á). I'm trying to get it from the Facebook SDK but what I get is Gonz√°lez instead of González.

Any suggestion?

sergiocg90
  • 489
  • 2
  • 11
  • 24

1 Answers1

0

Hey you can try following code :

- (NSString *) decodedString:(NSString *) originalString {
    NSString *newString = [NSString stringWithUTF8String:[originalString cStringUsingEncoding:[NSString defaultCStringEncoding]]];
    return newString;
}

I hope this will solve your problem. And I am also going to add this code at : iPhone how to write symbol on a label? in my answer.

Community
  • 1
  • 1
Devang
  • 11,258
  • 13
  • 62
  • 100