TIL that you can convert a two-letter ISO country code into the emoji of the flag of that country like this (I'll use France [FR] as an example):
1. Get the ASCII character code of each letter: F = 70, R = 82.
2. Add 127,397 to each; now you have F = 127,467 and R = 127,479.
3. Use those as unicode codepoints (🇫 🇷)
4. Concatenate both to get the emoji: 🇫🇷
Magic! 🤩
🔗 More about how this works, plus an interactive to play with - https://danq.me/iso-country-codes-to-flags

Converting ISO Country Codes to Flag Emojis
Did you know that there's a simple formula you can use to convert from an ISO two-letter country code to the emoji of the flag of that country. I've made an interactive thingy to demonstrate it, and shared some other fun things I've learned while playing around with ISO 3166 and flag emoji.
