Skip to content

UTF-16 Unicode country flags - Regional indicator symbols

It appear that the terminal isn't displaying UTF-16 Unicode flags.

This is not related to the font in use.

It would be great that the terminal handle that himself, as well as other ZWJ related sequences.

Or maybe i miss something?

echo -e "🇯🇵 Japan"
echo -e "\U1f1ef\U1f1f5 Japan"
echo -e "\U1f1ef\U200D\U1f1f5 Japan"
php -r "echo '🇯🇵 Japan';"

Both of these example output the two characters 🇯 and 🇵 with the ZWJ (Zero Width Joiner u200B) in the middle.

Screenshot_2025-06-20_14-47-29

Expected output: 🇯🇵 Japan


These were defined by October 2010 as part of the Unicode 6.0 support for emoji, as an alternative to encoding separate characters for each country flag.(...)
They are encoded in the range U+1F1E6 🇦 REGIONAL INDICATOR SYMBOL LETTER A to U+1F1FF 🇿 REGIONAL INDICATOR SYMBOL LETTER.

See: https://en.wikipedia.org/wiki/Regional_indicator_symbol