stefangabos / world_countries

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries
http://stefangabos.github.io/world_countries/
Other
1.39k stars 378 forks source link

alpha-2 and alpha-3 data violates ISO 3166-1:2020 #50

Closed michael-o closed 2 years ago

michael-o commented 3 years ago

Chapter 5.1 says:

LATIN CAPITAL LETTER A through LATIN CAPITAL LETTER Z; Code elements alpha-2 and alpha-3 are formed with LETTERS,

All country codes in data is wrong because it does not use uppercase letters, but lowercase letters. Lowercase letters are used with ISO 639 for languages only.

Please correct the data.

stefangabos commented 3 years ago

wow, thanks for the update! however, i will not fix this as the library is already widely used and i would break the internet :)

michael-o commented 3 years ago

The leave this open and add a note to the README.

stefangabos commented 3 years ago

Sure, that I can do - can you please provide me the link to the docs where you found this information?

michael-o commented 3 years ago

Well, access to ISO documents isn't unfortunately free: https://www.iso.org/obp/ui/#iso:std:iso:3166:-1:ed-4:v1:en. You have to buy the full document. I have full access to most standards document on the planet thanks to my employer, but here is a free-of-charge official list from the ISO. Select country codes and hit search.