Search code examples
iosobjective-caddressbook

Phone number format "(06)\U00a057\U00a011\U00a042\U00a095" when logging number from AdressBookAPI


I'm reading all the phone-numbers from the AdressBook api, and in some cases i've got a format like this: "(06)\U00a057\U00a011\U00a042\U00a095"

When checking my own addressbook however, it gives me a regular format like 0624567899

How come and how do I solve this?


Solution

  • I had the same problem, saw your post while searching for a solution, then i thought that maybe i should unpack the array instead of just NSLog(@"Phone = %@", self.array). Therefore you have to unpack or iterate through your array and your values will show correctly:

    for (NSString *d in self.array) {
            NSLog(@"Phone = %@", d);
    

    )