Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. International phone number formats?

International phone number formats?

Scheduled Pinned Locked Moved The Lounge
helpquestion
25 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Anyone knows where I can find all the international phone number formats? Googling didn't help... This gave me a little help, but it's incomplete: http://www.csoft.co.uk/phone_numbers/[^] ie: North America: (123) 555-1234 France: 00 00 00 00 00 Thanks! Carl

    C M D M 4 Replies Last reply
    0
    • L Lost User

      Anyone knows where I can find all the international phone number formats? Googling didn't help... This gave me a little help, but it's incomplete: http://www.csoft.co.uk/phone_numbers/[^] ie: North America: (123) 555-1234 France: 00 00 00 00 00 Thanks! Carl

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      The UK is variable so I don't know if it will help. For example The town I live in is in the format: 01383 123 456 The city I work in is in the format: 0131 123 4567 London is in league of its own 0207 123 4567 or 020 7123 4567 depending on who you speak to. And the international version can be +44 131 123 4567 or +44 (0)121 123 4567


      Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

      L 1 Reply Last reply
      0
      • C Colin Angus Mackay

        The UK is variable so I don't know if it will help. For example The town I live in is in the format: 01383 123 456 The city I work in is in the format: 0131 123 4567 London is in league of its own 0207 123 4567 or 020 7123 4567 depending on who you speak to. And the international version can be +44 131 123 4567 or +44 (0)121 123 4567


        Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hi, Thanks for this info. I am looking for all the formats (every country in the world, at least, the important ones). I'm building a class that formats phone numbers based on the country I provide. Could you tell me why the heck the format is different from city to city in the UK? That sounds a little crazy to me! Carl

        C 1 Reply Last reply
        0
        • L Lost User

          Hi, Thanks for this info. I am looking for all the formats (every country in the world, at least, the important ones). I'm building a class that formats phone numbers based on the country I provide. Could you tell me why the heck the format is different from city to city in the UK? That sounds a little crazy to me! Carl

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          C a r l wrote: Could you tell me why the heck the format is different from city to city in the UK? That sounds a little crazy to me! Probably evolution of numbers. When I was a child I went up to the Highlands to visit my relatives, the phone books there would have the phone numbers printed as "Dornoch 123" (only 3 or 4 digits) As more people got phone numbers they had to invent longer numbering systems. I am guessing that small towns got a dialing code of 0224, which became 01224. Larger towns that required more numbers got a seemingly shorter dialing code because they would group dialing codes together. So Edinburgh which was 031 was actually a group of 0311 to 0319 which has become 01311 to 01319. Before the telecom companies were deregulated there was a page at the front of the phone book that said where in the city a phone number roughly was. So 031 2xx was in the centre, while 031 3xx was out on the west and so on. London, as I said is in a league of its own. It stated of as simply 01, then it had to expand to 071 and 081 and then it became 0171 and 0181 and now it is 0207 and 0208 (but no where else uses 020 so I'm guessing, again, that eventually it will expand to use the whole 020x series) So, maybe it isn't so crazy after all.


          Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

          L D 2 Replies Last reply
          0
          • C Colin Angus Mackay

            C a r l wrote: Could you tell me why the heck the format is different from city to city in the UK? That sounds a little crazy to me! Probably evolution of numbers. When I was a child I went up to the Highlands to visit my relatives, the phone books there would have the phone numbers printed as "Dornoch 123" (only 3 or 4 digits) As more people got phone numbers they had to invent longer numbering systems. I am guessing that small towns got a dialing code of 0224, which became 01224. Larger towns that required more numbers got a seemingly shorter dialing code because they would group dialing codes together. So Edinburgh which was 031 was actually a group of 0311 to 0319 which has become 01311 to 01319. Before the telecom companies were deregulated there was a page at the front of the phone book that said where in the city a phone number roughly was. So 031 2xx was in the centre, while 031 3xx was out on the west and so on. London, as I said is in a league of its own. It stated of as simply 01, then it had to expand to 071 and 081 and then it became 0171 and 0181 and now it is 0207 and 0208 (but no where else uses 020 so I'm guessing, again, that eventually it will expand to use the whole 020x series) So, maybe it isn't so crazy after all.


            Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Nothing like the good old North American format :) (123) 555-1234 Couldn't be easier (for me, anyway!)

            C S 2 Replies Last reply
            0
            • L Lost User

              Nothing like the good old North American format :) (123) 555-1234 Couldn't be easier (for me, anyway!)

              C Offline
              C Offline
              Chris Meech
              wrote on last edited by
              #6

              C a r l wrote: North American format (123) 555-1234 Well, they weren't always that way. The exchanges used to be abbreviated with the alphbetic letters. And I'm pretty sure that when I was just a young pup, in Montreal, there were only 2 character exchanges. The history of how a technology has come to be, can be interesting. :) Chris Meech I am Canadian. [heard in a local bar] Gently arching his fishing rod back he moves the tip forward in a gentle arch releasing the line.... kersplunk [Doug Goulden] Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]

              1 Reply Last reply
              0
              • L Lost User

                Anyone knows where I can find all the international phone number formats? Googling didn't help... This gave me a little help, but it's incomplete: http://www.csoft.co.uk/phone_numbers/[^] ie: North America: (123) 555-1234 France: 00 00 00 00 00 Thanks! Carl

                M Offline
                M Offline
                Member 96
                wrote on last edited by
                #7

                We were considering something like this for a global app we sell, but after a little research decided it was much easier to just let the end user set the format with a text box that supports formatting from Infragistics. The problem being that numbers can be stored in different regional formats within a country and that people will have their own preferences that supersede the local format in some cases and also that numbers from different places with different formats may all be in the same database. And finally it's very likely that a lot of places will be getting extra digits in the not so distant future rendering any system obsolete.

                C 1 Reply Last reply
                0
                • M Member 96

                  We were considering something like this for a global app we sell, but after a little research decided it was much easier to just let the end user set the format with a text box that supports formatting from Infragistics. The problem being that numbers can be stored in different regional formats within a country and that people will have their own preferences that supersede the local format in some cases and also that numbers from different places with different formats may all be in the same database. And finally it's very likely that a lot of places will be getting extra digits in the not so distant future rendering any system obsolete.

                  C Offline
                  C Offline
                  Colin Angus Mackay
                  wrote on last edited by
                  #8

                  John Cardinal wrote: And finally it's very likely that a lot of places will be getting extra digits in the not so distant future rendering any system obsolete. Thats probably true. The UK has, for the moment settled down after 4 major changes in the last 20 years.


                  Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

                  1 Reply Last reply
                  0
                  • C Colin Angus Mackay

                    C a r l wrote: Could you tell me why the heck the format is different from city to city in the UK? That sounds a little crazy to me! Probably evolution of numbers. When I was a child I went up to the Highlands to visit my relatives, the phone books there would have the phone numbers printed as "Dornoch 123" (only 3 or 4 digits) As more people got phone numbers they had to invent longer numbering systems. I am guessing that small towns got a dialing code of 0224, which became 01224. Larger towns that required more numbers got a seemingly shorter dialing code because they would group dialing codes together. So Edinburgh which was 031 was actually a group of 0311 to 0319 which has become 01311 to 01319. Before the telecom companies were deregulated there was a page at the front of the phone book that said where in the city a phone number roughly was. So 031 2xx was in the centre, while 031 3xx was out on the west and so on. London, as I said is in a league of its own. It stated of as simply 01, then it had to expand to 071 and 081 and then it became 0171 and 0181 and now it is 0207 and 0208 (but no where else uses 020 so I'm guessing, again, that eventually it will expand to use the whole 020x series) So, maybe it isn't so crazy after all.


                    Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

                    D Offline
                    D Offline
                    David Wulff
                    wrote on last edited by
                    #9

                    Can you explain to me the logic behind adding a 1 as the second digit in most phone codes about eight or ten years ago (I don't remember exactly when it was). If I try to dial my home number with a code of 0884 I get a recorded BT woman telling me to redial with 01884. Now as the number that follows the area code hasn't changed, what advantage has adding that extra 1 in there done? Similarly, all the 5 digit phone numbers (after the code) in Exeter where pre-fixed with a 2 to make them 6 digits about 1998. If I try to dial my old office number with the old 5 digit number I get the same recorded BT woman telling me to redial with a 2 prefix on the number... I just don't see how they have created more numbers (their reasoning at the time) by adding in what is essentially a silent number. :confused:


                    David Wulff The Royal Woofle Museum

                    Everybody is entitled to my opinion

                    C C 2 Replies Last reply
                    0
                    • D David Wulff

                      Can you explain to me the logic behind adding a 1 as the second digit in most phone codes about eight or ten years ago (I don't remember exactly when it was). If I try to dial my home number with a code of 0884 I get a recorded BT woman telling me to redial with 01884. Now as the number that follows the area code hasn't changed, what advantage has adding that extra 1 in there done? Similarly, all the 5 digit phone numbers (after the code) in Exeter where pre-fixed with a 2 to make them 6 digits about 1998. If I try to dial my old office number with the old 5 digit number I get the same recorded BT woman telling me to redial with a 2 prefix on the number... I just don't see how they have created more numbers (their reasoning at the time) by adding in what is essentially a silent number. :confused:


                      David Wulff The Royal Woofle Museum

                      Everybody is entitled to my opinion

                      C Offline
                      C Offline
                      Colin Angus Mackay
                      wrote on last edited by
                      #10

                      David Wulff wrote: I just don't see how they have created more numbers (their reasoning at the time) by adding in what is essentially a silent number. It is a silent number now, but in the future it will be used. The 0884 number is in the range for low-cost/free phone numbers and I am guessing that there are no companies yet offering services with phone numbers starting 0884. The recorded message will probably stay until some service provider takes the number grouping. As I recall: 01-06: Geographic numbers 07: Mobile devices 08: Low cost/free numbers 09: Premium rate numbers 03-06 are not currently in use. 06: In many EU countries is used for mobile devices so 07 may be reorganised to 06 if EU harmonisation is required. (Already you can dial 112 for emergency services, which is the pan EU number for emergency services)


                      Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

                      D 1 Reply Last reply
                      0
                      • C Colin Angus Mackay

                        David Wulff wrote: I just don't see how they have created more numbers (their reasoning at the time) by adding in what is essentially a silent number. It is a silent number now, but in the future it will be used. The 0884 number is in the range for low-cost/free phone numbers and I am guessing that there are no companies yet offering services with phone numbers starting 0884. The recorded message will probably stay until some service provider takes the number grouping. As I recall: 01-06: Geographic numbers 07: Mobile devices 08: Low cost/free numbers 09: Premium rate numbers 03-06 are not currently in use. 06: In many EU countries is used for mobile devices so 07 may be reorganised to 06 if EU harmonisation is required. (Already you can dial 112 for emergency services, which is the pan EU number for emergency services)


                        Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

                        D Offline
                        D Offline
                        David Wulff
                        wrote on last edited by
                        #11

                        Colin Angus Mackay wrote: It is a silent number now, but in the future it will be used. Ok, so assuming in twenty years time when everybody has forgotten the old numbers they start reusing them again... why not just give the new numbers the extra digits? Trying to make all regional numbers use the same format would have been a good enough reason to change, but I don't see that happening as a result? O884 could become a low cost number - OK I can see the logic there - but what about the 95% of codes that didn't fall into that category? Exeter used to be 0392 for example. Colin Angus Mackay wrote: so 07 may be reorganised to 06 if EU harmonisation is required. Please no no no no no... Please. I have a hard enough time remembering all these mobile numbers as it is, without having to forget them all and start again! :rolleyes:


                        David Wulff The Royal Woofle Museum

                        Everybody is entitled to my opinion

                        1 Reply Last reply
                        0
                        • L Lost User

                          Nothing like the good old North American format :) (123) 555-1234 Couldn't be easier (for me, anyway!)

                          S Offline
                          S Offline
                          Shog9 0
                          wrote on last edited by
                          #12

                          Heh... growing up, nearly everyone i knew was on the same exchange, so i dialed 4-digits. As i met people in surrounding towns, i got in the habit of dialing seven digits. Then for a while, my contacts were split between a local phone company, and another that was accessed through a long-distance carrier, so i dialed some 7-digits and some 10. Now i'm with a cell company that doesn't bill me differently for local vs. long-distance, so i dial everything 10-digits. Apparently, New York landlines must soon be dialed with 11-digit codes soon ("1" + 10-digit number).
                          "The time has come," the Walrus said, "To talk of many things..."

                          1 Reply Last reply
                          0
                          • L Lost User

                            Anyone knows where I can find all the international phone number formats? Googling didn't help... This gave me a little help, but it's incomplete: http://www.csoft.co.uk/phone_numbers/[^] ie: North America: (123) 555-1234 France: 00 00 00 00 00 Thanks! Carl

                            D Offline
                            D Offline
                            David Crow
                            wrote on last edited by
                            #13

                            This might complement the list you already have. Here is another.


                            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                            L 1 Reply Last reply
                            0
                            • D David Crow

                              This might complement the list you already have. Here is another.


                              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #14

                              That's a nice list, but not really what I'm after. I'm looking for the phone number format of every country. As I said earlier, I'm writing a class that will return a formatted phone number based on the country and digits. Example: FormatPhone("1235551234", Countries.UnitedStates) --> (123) 555-1234 FormatPhone("1235551234", Countries.France) --> 12 35 55 12 34 It will also support phone extensions. I already have the format for France, USA and Canada but I'm looking to extend it to support all countries in the world.

                              D 1 Reply Last reply
                              0
                              • L Lost User

                                That's a nice list, but not really what I'm after. I'm looking for the phone number format of every country. As I said earlier, I'm writing a class that will return a formatted phone number based on the country and digits. Example: FormatPhone("1235551234", Countries.UnitedStates) --> (123) 555-1234 FormatPhone("1235551234", Countries.France) --> 12 35 55 12 34 It will also support phone extensions. I already have the format for France, USA and Canada but I'm looking to extend it to support all countries in the world.

                                D Offline
                                D Offline
                                David Crow
                                wrote on last edited by
                                #15

                                C a r l wrote: I'm looking for the phone number format of every country What country are you not finding?


                                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                                L 1 Reply Last reply
                                0
                                • D David Crow

                                  C a r l wrote: I'm looking for the phone number format of every country What country are you not finding?


                                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #16

                                  Maybe I didn't see... but those are only the country codes right? I'm looking for the "format", not the country code. I couldn't find any format information (as I said, maybe it's just me!)

                                  D 1 Reply Last reply
                                  0
                                  • L Lost User

                                    Maybe I didn't see... but those are only the country codes right? I'm looking for the "format", not the country code. I couldn't find any format information (as I said, maybe it's just me!)

                                    D Offline
                                    D Offline
                                    David Crow
                                    wrote on last edited by
                                    #17

                                    You are not going to find a format because one does not exist. For example, I write my phone number in any of the following formats: 1-918-555-1212 1 (918) 555-1212 (918) 555-1212 1.918.555.1212 918.555.1212 1 (918) 555.1212 1 (918) 555 1212 19185551212 Any one of them is correct, and probably depends on what mood I'm in as to which is used.


                                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                                    L 1 Reply Last reply
                                    0
                                    • D David Crow

                                      You are not going to find a format because one does not exist. For example, I write my phone number in any of the following formats: 1-918-555-1212 1 (918) 555-1212 (918) 555-1212 1.918.555.1212 918.555.1212 1 (918) 555.1212 1 (918) 555 1212 19185551212 Any one of them is correct, and probably depends on what mood I'm in as to which is used.


                                      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #18

                                      Well... everyone knows that in the US, numbers are grouped as follow: xxx xxx xxxx That's pretty much what I want. There -is- a certain standard in America, although it might not be precise. 123-123-1234 is considered as correct, but 123123 1234 is not.

                                      M D 2 Replies Last reply
                                      0
                                      • L Lost User

                                        Well... everyone knows that in the US, numbers are grouped as follow: xxx xxx xxxx That's pretty much what I want. There -is- a certain standard in America, although it might not be precise. 123-123-1234 is considered as correct, but 123123 1234 is not.

                                        M Offline
                                        M Offline
                                        Member 96
                                        wrote on last edited by
                                        #19

                                        No Carl, there *isn't* a standard in how to format telephone numbers. As I said earlier, we put a lot of time and research into this very issue about a year ago and the definitive answer was let the user pick their own format. I've seen here in Canada any one of the following used in print: 555.555.5555 <-starting to see this *very* often all over the place, IP style notation. (555) 555-5555 (555) 555 5555 555 555-5555 555-5555 (area code 555) 1-800-pizza55 etc etc, it's just endless. There *are* standards for mailing address put out by each country's postal authority, there are standards for iso country codes, there are standards for IP addresses, credit card numbers, social security / social insurance numbers, license plates etc. Phone number formatting is at best a personal convention. There will never be a *right* way to do it. No matter what you come up with, a sizable percentage of people will not like it, trust me on this one, we've been publishing business software for almost a decade now and people at large take this kind of thing pretty seriously and demand that it conform to their expectations even if their expectations are just plain wrong.

                                        L D 2 Replies Last reply
                                        0
                                        • M Member 96

                                          No Carl, there *isn't* a standard in how to format telephone numbers. As I said earlier, we put a lot of time and research into this very issue about a year ago and the definitive answer was let the user pick their own format. I've seen here in Canada any one of the following used in print: 555.555.5555 <-starting to see this *very* often all over the place, IP style notation. (555) 555-5555 (555) 555 5555 555 555-5555 555-5555 (area code 555) 1-800-pizza55 etc etc, it's just endless. There *are* standards for mailing address put out by each country's postal authority, there are standards for iso country codes, there are standards for IP addresses, credit card numbers, social security / social insurance numbers, license plates etc. Phone number formatting is at best a personal convention. There will never be a *right* way to do it. No matter what you come up with, a sizable percentage of people will not like it, trust me on this one, we've been publishing business software for almost a decade now and people at large take this kind of thing pretty seriously and demand that it conform to their expectations even if their expectations are just plain wrong.

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #20

                                          I guess this thread is really going nowhere near helping me... :|

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups