Search code examples
unicodeiconskeyglyph

Is there a Unicode glyph that looks like a "key" icon?


Unicode has a million icon-like glyphs, but they're not always easy to search by, since I don't always know what they look like.

Is there a Unicode glyph that looks like a "key"? Or is there a symbol that's used in database circles to mean "primary key", which is in Unicode?


Solution

  • I used a little Python 3 script to look, and the closest I found does not display here for me (does display in Idle on my machine), but it is:

    9897 ⚩ HORIZONTAL MALE WITH STROKE SIGN
    

    (Looks like a male sign pointed right with a perpendicular stroke added between the arrow and circle)

    I searched for various matches like "KEY" and "LOCK" in the unicode names using Python's unicodedata module and no luck there.

    Editing to add - Ah hah - one that looks even more like a key:

    9911 ⚷ CHIRON
    

    enter image description here

    I give both of the above code points in decimal. To see them and their hex codes, go to this link:

    http://www.unicode.org/charts/PDF/U2600.pdf

    See 26B7 in particular for the Chiron.