Skip to content

Conversation

@vadi2
Copy link

@vadi2 vadi2 commented Dec 4, 2025

ISO 3166-1 reserves certain alpha-2 codes for user assignment:

  • AA
  • QM to QZ
  • XA to XZ
  • ZZ

These codes are part of the ISO 3166-1 standard and are reserved for users who need to add further code elements for their own purposes. They will never be assigned to actual country names by ISO.

Common uses include:

  • XX: Unknown or Unspecified Country
  • XY: Anonymous Country (for privacy)
  • XK: Kosovo (used by European Commission)
  • ZZ: Unknown or International

Reference: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#User-assigned_code_elements

ISO 3166-1 reserves certain alpha-2 codes for user assignment:
- AA
- QM to QZ
- XA to XZ
- ZZ

These codes are part of the ISO 3166-1 standard and are reserved for
users who need to add further code elements for their own purposes.
They will never be assigned to actual country names by ISO.

Common uses include:
- XX: Unknown or Unspecified Country
- XY: Anonymous Country (for privacy)
- XK: Kosovo (used by European Commission)
- ZZ: Unknown or International

Reference: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#User-assigned_code_elements
@grahamegrieve
Copy link
Collaborator

I feel like the common usages should actually make it into the displays. Like Kosovo. But also, I use XY for 'pretending to be a country' in test environments

Update display names based on established usage:
- XK: Kosovo (European Commission, IMF, SWIFT, CLDR)
- XX: Unknown (WIPO, CABForum)
- XZ: International Waters (UN/LOCODE)
- ZZ: Unknown or Invalid Territory (Unicode CLDR)
@vadi2
Copy link
Author

vadi2 commented Dec 5, 2025

Added a the known good ones

Copy link
Collaborator

@grahamegrieve grahamegrieve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@grahamegrieve grahamegrieve merged commit b5706ca into HealthIntersections:master Dec 8, 2025
1 check failed
@vadi2 vadi2 deleted the claude/add-iso-3166-codes-017GfEdfKq5nYzMFbsBGNyvF branch December 8, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants