The trans flag is not encoded directly in Unicode. By convention, it's implemented by combining a white flag with the transgender planet symbol (Linnaean).
>>> import unicodedata
>>> list(map(unicodedata.name, "🏳⚧"))
['WAVING WHITE FLAG', 'ZERO WIDTH JOINER', 'MALE WITH STROKE AND MALE AND FEMALE SIGN']
(Sometimes it also has a variation selector at the end.)
Some systems will replace this with an image; others fall back on the client-side font renderer.
Many pride flags have obvious encodings (e.g. 🏳☿, 🏳⚢, 🏳⚣, 🏳⚤, 🏳⚲), but I haven't found one for :nonbinary_flag: : the obvious symbol (https://commons.wikimedia.org/wiki/File:Nonbinary_Gender_Symbol.svg) is not in Unicode.
Add comment