How to Identify the Interrobang in Unicode

Learn how to confirm that a character is the Unicode interrobang (U+203D), tell it apart from look-alikes such as ?! and ⁈, and check it with a code point inspector or a few lines of code.

The interrobang is a single punctuation mark that combines a question mark and an exclamation mark, as in "You did what‽". Several other characters look similar on screen, so you cannot reliably tell them apart by eye. This guide shows how to confirm which character your text contains by checking its code point, so you can search, replace or encode it without changing anything else.

What a code point inspector does for your text

A code point is the number Unicode assigns to each character. It is usually written as U+ followed by hexadecimal digits. A code point inspector takes the text you paste in and lists each character separately. For each one it shows the code point, the official character name and, depending on the tool, the Unicode block and the bytes used to store the character in encodings such as UTF-8.

Inspection only reads your text. It does not change it. That matters when you need to know whether a mark is one character or two before you run a find-and-replace, write a pattern or move text between systems.

The interrobang's Unicode identity

The table below lists the values from the Unicode character data that confirm a character is the interrobang.

Property | Value
Character | ‽
Code point | U+203D
Official name | INTERROBANG
Block | General Punctuation (U+2000–U+206F)
Decimal value | 8253
UTF-8 bytes | E2 80 BD
UTF-16 code unit | 203D
HTML numeric reference | ‽ or ‽

There is also an inverted interrobang, ⸘ (U+2E18, INVERTED INTERROBANG), in the Supplemental Punctuation block. It is used where an opening mark is wanted, similar to the Spanish ¿ and ¡.

Characters that look like an interrobang but are not

An inspector is most useful when it separates the real interrobang from characters that look alike. Each of the following has a different code point. A search for U+203D will not match any of them.

  • ?! — two separate characters: QUESTION MARK (U+003F) followed by EXCLAMATION MARK (U+0021)
  • ⁈ — QUESTION EXCLAMATION MARK (U+2048), a single character with the two marks side by side
  • ⁉ — EXCLAMATION QUESTION MARK (U+2049), the same idea with the order reversed; when followed by the invisible variation selector U+FE0F it is usually shown as an emoji
  • ‼ — DOUBLE EXCLAMATION MARK (U+203C)
  • ⁇ — DOUBLE QUESTION MARK (U+2047)
  • U+1F679, U+1F67A, U+1F67B — HEAVY INTERROBANG ORNAMENT, SANS-SERIF INTERROBANG ORNAMENT and HEAVY SANS-SERIF INTERROBANG ORNAMENT, decorative dingbats in the Ornamental Dingbats block rather than ordinary punctuation

A variation selector such as U+FE0F has no visible glyph of its own. If an inspector lists an extra entry after ⁉, an invisible character like this is the likely reason.

Step by step: confirm the character in your text

  • 1. Copy only the mark you want to check, or the shortest stretch of text around it.
  • 2. Paste it into a Unicode code point inspector, or use one of the code snippets below.
  • 3. Count the entries. One entry means a single character; two entries such as U+003F and U+0021 mean the plain ?! sequence.
  • 4. Compare the code point and name with the table above. U+203D with the name INTERROBANG confirms the real interrobang.
  • 5. Check for extra invisible entries, such as variation selectors or zero-width characters, that could affect searching or matching.

Checking the code point with code

If you have a programming environment, you can inspect the character directly. These are illustrative examples. The results shown are what the Unicode data predicts, not output captured for this article.

Python: ord() returns the code point, and the unicodedata module returns the official name.

import unicodedata

ch = "‽"
print(hex(ord(ch)))            # expected: 0x203d
print(unicodedata.name(ch))    # expected: INTERROBANG
print(ch.encode("utf-8"))      # expected: b'\xe2\x80\xbd'

JavaScript: codePointAt() returns the code point as a number.

const ch = "‽";
console.log(ch.codePointAt(0).toString(16)); // expected: 203d
console.log([..."?!"].map(c => c.codePointAt(0).toString(16))); // expected: [ '3f', '21' ]

Command line: a hex dump shows the raw bytes. This only works as expected if your terminal and shell use UTF-8.

printf '‽' | xxd
# expected bytes: e2 80 bd

Using the result in searches and patterns

Once you know the code point, you can target the interrobang without touching similar marks. In many regular expression engines you can write it as an escape instead of the literal character, for example \u203D in JavaScript or Python strings. Some engines use other forms, such as \x{203D}, so check the syntax your tool supports. Searching for the code point avoids accidentally matching ?!, ⁈ or ⁉.

Display caveats and gaps

Whether ‽ displays correctly depends on the fonts installed on the device. If no available font has a glyph for it, you may see a blank box or a replacement symbol instead. The underlying code point is still U+203D, which is why inspecting the code point is more reliable than judging by appearance.

No specific inspection tools, measurements or compatibility test results were supplied for this guide. The values above come from the Unicode character data. Font coverage and the exact output format of any particular inspector are not covered here.