Last active
December 20, 2023 12:20
-
-
Save henrik/1688572 to your computer and use it in GitHub Desktop.
EU (European Union) country codes, ISO 3166-1 alpha-2. (This Gist is from 2012. Please see comments for updates.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: VAT identification numbers for Greece use "EL", not "GR". | |
COUNTRY_CODES_EU = %w[ | |
AT BE BG CY CZ DK EE FI FR DE GR HU IE IT | |
LV LT LU MT NL PL PT RO SK SI ES SE GB | |
] |
This thread was originally about EU countries, them @mizterp changed the topic to GDPR countries and it (confusingly) became a mixture of both topics.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What a helpful thread! The list posted by Dan is almost right - UK is no longer part of the EU.
According to the UK government atleast: https://www.gov.uk/eu-eea
According to the canadian governement from 2013 (so needs modification): https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=141329
According to the actual EU: https://european-union.europa.eu/easy-read_en
The alpha 2 code for
Greece
isGR
noEL
- which AFIK is not a valid Alpha2 code.The correct list (with Alpha2 codes) would then be:
Cheers!