Black Diamond Suit
U+2666 · decimal 9830 · Miscellaneous Symbols
Every way to write it
7 forms♦
A named entity — readable, and safe in any HTML document without declaring a charset.
♦
The numeric form works everywhere a named one does, and exists for every character.
\2666
For a content property in a ::before or ::after rule. No semicolon, and mind the trailing space.
\u2666
Valid in a JavaScript or JSON string literal, so it survives files and pipelines that are not UTF-8 clean.
\u2666
The escape for a Python string literal.
%E2%99%A6
Percent-encoded UTF-8, for a query string or a path segment.
E2 99 A6
3 bytes on the wire. Seeing these as separate garbled characters means something decoded them as single-byte text.
Typing it without copying
system pickerControl + Command + Space, then search black diamond suit
Character Map or Alt + 9830