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. ISO_3166-1 codes for the UK folks...

ISO_3166-1 codes for the UK folks...

Scheduled Pinned Locked Moved The Lounge
databasehelpquestion
27 Posts 11 Posters 26 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.
  • J Jeremy Falcon

    I should, but to use Scotland directly now I'd have to re-index my database, which is not fun. Question, how stupid would it look if I ever addressed something in Scotland for instance like this...

    Mr. John C. Doe
    123 Some Street
    Edinburgh
    EH1 3DG
    United Kingdom of Great Britain and Northern Ireland

    ?

    Jeremy Falcon

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #7

    Well, you wouldn't spell out, "The United States of America", either I bet. I don't think that standard is designed for your purpose. If I recall correctly, my wife writes "Europe" on the cards she sends to relatives in Austria and that small wet island. :)

    J 1 Reply Last reply
    0
    • A A_Griffin

      Just say "Scotland, England". The Scots won't mind. Honest.

      J Offline
      J Offline
      Jorgen Andersson
      wrote on last edited by
      #8

      I only know one scotsman. He'd be happy, it would give him a reason to use sarcasm.

      Wrong is evil and must be defeated. - Jeff Ello

      A 1 Reply Last reply
      0
      • J Jeremy Falcon

        So here I am updating a list of a countries in a database I'm working on (fun stuff) to be all recent and fancy etc. I decided "hey, why not get all official and go with ISO standards." Cool right? Well, therein makes one wonder. If you look at the list of ISO-3166-1[^] codes... UK is gone. So is Scotland, etc. You can search for ISO 3166-2:GB on the page to see the entry I'm referring to. Now it's GB for the whole darn mess. I know the UK isn't a country per sé, but when I show a list of countries as a selection on a form in a webpage and it doesn't say something like United Kingdom or Scotland and just a blanket "United Kingdom of Great Britain and Northern Ireland" in a select box that means everything and the kitchen sink, I can't help but think WTF. So, let's say I want to store the address - including country - for a user in a database who lives in Scotland. Should I now be saying: John Doe, XYZ, in the friggin United Kingdom of Great Britain and Northern Ireland? Seems kinda silly to not just say Scotland, right?

        Jeremy Falcon

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #9

        What's the difference between a country and a state anyway? The Difference between the United Kingdom, Great Britain and England Explained - YouTube[^]

        Wrong is evil and must be defeated. - Jeff Ello

        J 1 Reply Last reply
        0
        • J Jorgen Andersson

          I only know one scotsman. He'd be happy, it would give him a reason to use sarcasm.

          Wrong is evil and must be defeated. - Jeff Ello

          A Offline
          A Offline
          A_Griffin
          wrote on last edited by
          #10

          Sarcasm? He'd thank you with a Glasgow kiss....

          J 1 Reply Last reply
          0
          • J Jeremy Falcon

            So here I am updating a list of a countries in a database I'm working on (fun stuff) to be all recent and fancy etc. I decided "hey, why not get all official and go with ISO standards." Cool right? Well, therein makes one wonder. If you look at the list of ISO-3166-1[^] codes... UK is gone. So is Scotland, etc. You can search for ISO 3166-2:GB on the page to see the entry I'm referring to. Now it's GB for the whole darn mess. I know the UK isn't a country per sé, but when I show a list of countries as a selection on a form in a webpage and it doesn't say something like United Kingdom or Scotland and just a blanket "United Kingdom of Great Britain and Northern Ireland" in a select box that means everything and the kitchen sink, I can't help but think WTF. So, let's say I want to store the address - including country - for a user in a database who lives in Scotland. Should I now be saying: John Doe, XYZ, in the friggin United Kingdom of Great Britain and Northern Ireland? Seems kinda silly to not just say Scotland, right?

            Jeremy Falcon

            C Offline
            C Offline
            Chris Maunder
            wrote on last edited by
            #11

            I went through the same pain many years ago. Take a look at England vs Great Britain vs United Kingdom Explained - Brilliant Maps[^] [Edit: I'm happy to share whatever data I have with you if you need it. Just let me know what you need]

            cheers Chris Maunder

            J 1 Reply Last reply
            0
            • P PIEBALDconsult

              Well, you wouldn't spell out, "The United States of America", either I bet. I don't think that standard is designed for your purpose. If I recall correctly, my wife writes "Europe" on the cards she sends to relatives in Austria and that small wet island. :)

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #12

              Yeah totally. It's way too verbose. Rather than re-key stuff, I just decided to add a shorthand column to the DB. So if for whatever reason I need to show the country at least it won't read like a paragraph or novel.

              1 Reply Last reply
              0
              • J Jorgen Andersson

                What's the difference between a country and a state anyway? The Difference between the United Kingdom, Great Britain and England Explained - YouTube[^]

                Wrong is evil and must be defeated. - Jeff Ello

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #13

                Great minds think alike... I totally watched that same exact video... just to make sure that if I "engineer" something it came out ok.

                1 Reply Last reply
                0
                • C Chris Maunder

                  I went through the same pain many years ago. Take a look at England vs Great Britain vs United Kingdom Explained - Brilliant Maps[^] [Edit: I'm happy to share whatever data I have with you if you need it. Just let me know what you need]

                  cheers Chris Maunder

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #14

                  Thanks man, turns out I watched that same exact video. Totally wish I would've had your offer about a week ago. I just spent the entirety of this week cleaning up and tweaking my geo data (to the tune of 4million-ish cities) with all this new fancy ISO 3166 stuff. I have a about 3.5k off the wall places I have no real clue wtf their proper M49 code is though. I ended up using some private ones I found off of an XML feed on unicode.org. Just out of curiosity, how are you naming your "regional" table that contains states, provinces, etc? I can't call mine State and I don't think Province will apply to every country in the world. Oh the joys of making an international app.

                  C A 2 Replies Last reply
                  0
                  • J Jeremy Falcon

                    So here I am updating a list of a countries in a database I'm working on (fun stuff) to be all recent and fancy etc. I decided "hey, why not get all official and go with ISO standards." Cool right? Well, therein makes one wonder. If you look at the list of ISO-3166-1[^] codes... UK is gone. So is Scotland, etc. You can search for ISO 3166-2:GB on the page to see the entry I'm referring to. Now it's GB for the whole darn mess. I know the UK isn't a country per sé, but when I show a list of countries as a selection on a form in a webpage and it doesn't say something like United Kingdom or Scotland and just a blanket "United Kingdom of Great Britain and Northern Ireland" in a select box that means everything and the kitchen sink, I can't help but think WTF. So, let's say I want to store the address - including country - for a user in a database who lives in Scotland. Should I now be saying: John Doe, XYZ, in the friggin United Kingdom of Great Britain and Northern Ireland? Seems kinda silly to not just say Scotland, right?

                    Jeremy Falcon

                    H Offline
                    H Offline
                    H Brydon
                    wrote on last edited by
                    #15

                    Jeremy Falcon wrote:

                    So, let's say I want to store the address - including country - for a user in a database who lives in Scotland. Should I now be saying: John Doe, XYZ, in the friggin United Kingdom of Great Britain and Northern Ireland? ...

                    The information that I have says that John Doe does not exist in the UKOGBANI. It is Joe Bloggs there...

                    I'm retired. There's a nap for that... - Harvey

                    L 1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      Thanks man, turns out I watched that same exact video. Totally wish I would've had your offer about a week ago. I just spent the entirety of this week cleaning up and tweaking my geo data (to the tune of 4million-ish cities) with all this new fancy ISO 3166 stuff. I have a about 3.5k off the wall places I have no real clue wtf their proper M49 code is though. I ended up using some private ones I found off of an XML feed on unicode.org. Just out of curiosity, how are you naming your "regional" table that contains states, provinces, etc? I can't call mine State and I don't think Province will apply to every country in the world. Oh the joys of making an international app.

                      C Offline
                      C Offline
                      Chris Maunder
                      wrote on last edited by
                      #16

                      Jeremy Falcon wrote:

                      how are you naming your "regional" table

                      Subcountry. A few years ago we developed scripts to import and clean geo-data from several sources. Cities, subcountries, countries, regions, continents. The lot. PITA.

                      cheers Chris Maunder

                      J 1 Reply Last reply
                      0
                      • H H Brydon

                        Jeremy Falcon wrote:

                        So, let's say I want to store the address - including country - for a user in a database who lives in Scotland. Should I now be saying: John Doe, XYZ, in the friggin United Kingdom of Great Britain and Northern Ireland? ...

                        The information that I have says that John Doe does not exist in the UKOGBANI. It is Joe Bloggs there...

                        I'm retired. There's a nap for that... - Harvey

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

                        H.Brydon wrote:

                        It is Joe Bloggs there...

                        Or rather, "the man on the Clapham omnibus". ;)

                        1 Reply Last reply
                        0
                        • J Jeremy Falcon

                          So here I am updating a list of a countries in a database I'm working on (fun stuff) to be all recent and fancy etc. I decided "hey, why not get all official and go with ISO standards." Cool right? Well, therein makes one wonder. If you look at the list of ISO-3166-1[^] codes... UK is gone. So is Scotland, etc. You can search for ISO 3166-2:GB on the page to see the entry I'm referring to. Now it's GB for the whole darn mess. I know the UK isn't a country per sé, but when I show a list of countries as a selection on a form in a webpage and it doesn't say something like United Kingdom or Scotland and just a blanket "United Kingdom of Great Britain and Northern Ireland" in a select box that means everything and the kitchen sink, I can't help but think WTF. So, let's say I want to store the address - including country - for a user in a database who lives in Scotland. Should I now be saying: John Doe, XYZ, in the friggin United Kingdom of Great Britain and Northern Ireland? Seems kinda silly to not just say Scotland, right?

                          Jeremy Falcon

                          D Offline
                          D Offline
                          Daniel Pfeffer
                          wrote on last edited by
                          #18

                          I note that both France and Germany are on the ISO 3166 maintenance agency (see [ISO 3166 - Wikipedia](https://en.wikipedia.org/wiki/ISO\_3166#ISO\_3166\_Maintenance\_Agency) ). Could Brexit have something to do with it? :laugh:

                          If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                          1 Reply Last reply
                          0
                          • J Jeremy Falcon

                            Thanks man, turns out I watched that same exact video. Totally wish I would've had your offer about a week ago. I just spent the entirety of this week cleaning up and tweaking my geo data (to the tune of 4million-ish cities) with all this new fancy ISO 3166 stuff. I have a about 3.5k off the wall places I have no real clue wtf their proper M49 code is though. I ended up using some private ones I found off of an XML feed on unicode.org. Just out of curiosity, how are you naming your "regional" table that contains states, provinces, etc? I can't call mine State and I don't think Province will apply to every country in the world. Oh the joys of making an international app.

                            A Offline
                            A Offline
                            A_Griffin
                            wrote on last edited by
                            #19

                            "State" or "State/region" seems to be in common use. As you say, there is no one word used by all countries - "county" in the UK, "department" in France, etc - but "state" is pretty much universally recognised, I think. Likewise, "Zip code" seems also to be gaining universal acceptance, though many places still prefer "Post code", so maybe "Zip/Post code" is better for that. Only thing you can be sure if is that no matter what you do, someone will be upset....

                            P J 2 Replies Last reply
                            0
                            • J Jeremy Falcon

                              So here I am updating a list of a countries in a database I'm working on (fun stuff) to be all recent and fancy etc. I decided "hey, why not get all official and go with ISO standards." Cool right? Well, therein makes one wonder. If you look at the list of ISO-3166-1[^] codes... UK is gone. So is Scotland, etc. You can search for ISO 3166-2:GB on the page to see the entry I'm referring to. Now it's GB for the whole darn mess. I know the UK isn't a country per sé, but when I show a list of countries as a selection on a form in a webpage and it doesn't say something like United Kingdom or Scotland and just a blanket "United Kingdom of Great Britain and Northern Ireland" in a select box that means everything and the kitchen sink, I can't help but think WTF. So, let's say I want to store the address - including country - for a user in a database who lives in Scotland. Should I now be saying: John Doe, XYZ, in the friggin United Kingdom of Great Britain and Northern Ireland? Seems kinda silly to not just say Scotland, right?

                              Jeremy Falcon

                              F Offline
                              F Offline
                              F ES Sitecore
                              wrote on last edited by
                              #20

                              .uk wasn't actually our top-level domain name, it was used unofficially and has now been adopted, the UK's real TLD was .gb so it makes sense the ISO codes also use GB. You would never store "Scotland", "England" etc as someone's country as they are not sovereign states and only sovereign states are globally recognised as countries. The only time you'd store England as someone's country is if you are an American developing an American website and think that England and the UK are the same thing.

                              J R 2 Replies Last reply
                              0
                              • A A_Griffin

                                "State" or "State/region" seems to be in common use. As you say, there is no one word used by all countries - "county" in the UK, "department" in France, etc - but "state" is pretty much universally recognised, I think. Likewise, "Zip code" seems also to be gaining universal acceptance, though many places still prefer "Post code", so maybe "Zip/Post code" is better for that. Only thing you can be sure if is that no matter what you do, someone will be upset....

                                P Offline
                                P Offline
                                pt1401
                                wrote on last edited by
                                #21

                                Isn't a state a sovereign country? Unless you're from the USA.

                                1 Reply Last reply
                                0
                                • A A_Griffin

                                  Sarcasm? He'd thank you with a Glasgow kiss....

                                  J Offline
                                  J Offline
                                  Jorgen Andersson
                                  wrote on last edited by
                                  #22

                                  It would be an Inverness kiss in that case. Except he's actually very peaceful outside his verbal skills.

                                  Wrong is evil and must be defeated. - Jeff Ello

                                  1 Reply Last reply
                                  0
                                  • F F ES Sitecore

                                    .uk wasn't actually our top-level domain name, it was used unofficially and has now been adopted, the UK's real TLD was .gb so it makes sense the ISO codes also use GB. You would never store "Scotland", "England" etc as someone's country as they are not sovereign states and only sovereign states are globally recognised as countries. The only time you'd store England as someone's country is if you are an American developing an American website and think that England and the UK are the same thing.

                                    J Offline
                                    J Offline
                                    Jorgen Andersson
                                    wrote on last edited by
                                    #23

                                    Not just Americans I can assure you.

                                    Wrong is evil and must be defeated. - Jeff Ello

                                    F 1 Reply Last reply
                                    0
                                    • C Chris Maunder

                                      Jeremy Falcon wrote:

                                      how are you naming your "regional" table

                                      Subcountry. A few years ago we developed scripts to import and clean geo-data from several sources. Cities, subcountries, countries, regions, continents. The lot. PITA.

                                      cheers Chris Maunder

                                      J Offline
                                      J Offline
                                      Jeremy Falcon
                                      wrote on last edited by
                                      #24

                                      Chris Maunder wrote:

                                      Subcountry

                                      I called mine province, but I like the idea of making it more generic.

                                      Chris Maunder wrote:

                                      A few years ago we developed scripts to import and clean geo-data from several sources. Cities, subcountries, countries, regions, continents. The lot. PITA.

                                      If I ever have to do this again for this DB, I'm gonna follow suit.

                                      Jeremy Falcon

                                      1 Reply Last reply
                                      0
                                      • A A_Griffin

                                        "State" or "State/region" seems to be in common use. As you say, there is no one word used by all countries - "county" in the UK, "department" in France, etc - but "state" is pretty much universally recognised, I think. Likewise, "Zip code" seems also to be gaining universal acceptance, though many places still prefer "Post code", so maybe "Zip/Post code" is better for that. Only thing you can be sure if is that no matter what you do, someone will be upset....

                                        J Offline
                                        J Offline
                                        Jeremy Falcon
                                        wrote on last edited by
                                        #25

                                        A_Griffin wrote:

                                        Only thing you can be sure if is that no matter what you do, someone will be upset....

                                        :laugh: Wise words.

                                        Jeremy Falcon

                                        1 Reply Last reply
                                        0
                                        • J Jorgen Andersson

                                          Not just Americans I can assure you.

                                          Wrong is evil and must be defeated. - Jeff Ello

                                          F Offline
                                          F Offline
                                          F ES Sitecore
                                          wrote on last edited by
                                          #26

                                          Yes, the majority of English people don't know the difference either.

                                          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