Numbers appear with country code in message app

A friend of mine just bought an iPhone. She imported all her SIM contacts using the regular method: Settings > Contacts > Import from SIM All went well.

But when she opens the Messages app, the list is filled with numbers with a country code prefix, so instead of the normal overview of conversations (Tom Dice, David Swimmer, Kim Bauer, etc.), she gets a list with all the numbers of her contacts as name (+324123456, +328945782, etc.).

So, has she imported her contacts the wrong way? Or Iis there some corrupt data in her phone? Or what?

I know it's a pretty vague question without a screenshot, but if you need any more information, please let me know.


Solution 1:

It might be how the previous phone she had save the data on the sim card and the iPhone couldn't import it properly and misplaces the data in the import processes.

I suggest you try once again with the same phone with different sim card [or even the same sim card and see]

This will make sure that the phone doesn't have a problem.

Because to me the importing data from sim card most likely a software issues which easy to solve.

Solution 2:

Where you said "language code" I guess you meant "country code". Is the country code the code for the country the phone's number is in or is it a different country?

Under Settings -> Phone, does her own phone number have a country code? Is it the same or different that the country code being imported? Does she have "International Assist" turned on or off?

In any case, try picking one of the messages, scrolling to the top, clicking "Add Contact", "Add to existing contact", and add the number to the contact and see what happens. It should restore the names to the Messsage list and you might end up with two numbers for the contact, one with the country code and one without. Then the question is will both work?

Solution 3:

This happens when there is a mismatch between the number associated with the conversation in Messages and the number associated with the person in Contacts.

E.g. I can simulate your problem by removing 1 number from the end of the phone number of one of my contacts. Instead of displaying the name in Messages as before it will then display the phone number instead.

Likely this problem exists because the previous phone automatically prepended "+32" to all SMS data instead of using the number as stored on the SIM card. Several solutions are possible :

  • Go through all of the contacts and add the country code (+32, fellow Belgian I see) to their phone number either manually on the phone or desktop or go to the top of the conversation in Messages and tap "Put in list", then "Put in existing contact" to add the full number to the right contact.
  • Delete all conversations, starting over clean the iPhone will associate conversations with the correct number. (I have both numbers with +32 and without in my contacts and SMS are correctly displayed for both.)
  • If you are willing to jailbreak you could probably change the numbers directly in the SMS database.

I've found a thread with an Applescript to add the country code automatically to all contacts here, but have not tested it so use at your own risk (and backup, backup, backup if you do.)

property myAreaCode : "+32 "
tell application "Address Book"
 repeat with aPerson in people
 set thePhones to phones of aPerson
 if thePhones is not {} then
 set errorList to {}
 repeat with aPhoneNumber in thePhones
 set theNumber to value of aPhoneNumber
 if theNumber begins with "0" then

 try
 set value of aPhoneNumber to myAreaCode & (characters 2 thru (number of characters of theNumber) of theNumber)
 on error
 copy name of aPerson to end of errorList
 end try
 end if
 end repeat
 if errorList is not {} then
 display dialog errorList
 end if
 end if
 end repeat
 save
end tell 

Solution 4:

I had the same issue. My iPhone was fine, but my iPad all of a sudden showed country codes in messages instead of names. Very frustrating. I noticed that my contacts in my iPhone had the (xxx)xxx-xxxx syntax versus my iPad displayed xxxxxxxxxx in my contacts. I do sync my contacts in the cloud.

Solution was to turn off contacts on my iPad (via settings in iCloud on iPad), then it asks for option to keep or delete contacts. I deleted them. I waited to validate that my contacts were removed from my iPad. I turned the contacts on via iCloud again in settings menu on my iPad. Once the contacts came back, the (xxx)xxx-xxxx syntax was back on my iPad. Really weird, not sure why it got "corrupted" all of a sudden.