Skip to content
Editorial Essay#unicode#excel#developers

Unicode Lookalikes: 8 Twin Symbols That Quietly Break Excel, SQL & Code

Why minus sign (−) breaks Excel formulas, non-breaking spaces break SQL queries, and curly quotes crash JSON, with a copy-safe verification chart.

·8 min read·Updated Nov 20, 2026
Matte-black and luminous translucent lime keycaps arranged in a concrete tray illustrating visually similar symbols with distinct Unicode code points.
Visually identical glyphs can carry completely different Unicode code points under the hood, silently breaking formulas and parsers.

You copy a seemingly clean formula from a slide deck into Excel, or paste a JSON snippet from a chat thread into your code editor, and everything explodes with #VALUE!, SyntaxError, or an empty database query. You stare at the line for ten minutes. Every character looks 100% correct.

What broke your file is a Unicode lookalike (also called a confusable or homoglyph): two distinct Unicode code points whose shapes look nearly identical in proportional fonts, yet parsers, compilers, and spreadsheet engines treat them as completely unrelated characters. Below are the eight twin pairs that silently break real-world spreadsheets, SQL queries, HTML, and code, plus how to detect and clean them in seconds.

The 8 Most Dangerous Unicode Lookalike Pairs

Every pair in the table below has caused production bugs in Excel workbooks, CSV imports, configuration files, or web templates:

Visual PairCode-Safe CharacterLookalike CulpritWhat Breaks
- vs −Hyphen-Minus (U+002D)Minus Sign (U+2212) or En Dash (U+2013)Excel treats −45 as text instead of a negative number; Python/JS throws SyntaxError
" vs “ ”Straight Quote (U+0022)Curly Smart Quotes (U+201C / U+201D)Breaks JSON, SQL string literals, HTML attributes, and CLI flags pasted from Word/Docs
' vs ’ASCII Apostrophe (U+0027)Right Single Quote (U+2019) or Prime (U+2032)Breaks JavaScript strings, SQL single-quoted values, and Excel sheet references
Space vs NBSPASCII Space (U+0020)Non-Breaking Space (U+00A0)Excel TRIM() ignores U+00A0; VLOOKUP fails on "matching" names
° vs ºDegree Sign (U+00B0)Masculine Ordinal (U+00BA) or Ring (U+02DA)Screen readers announce "25th" instead of "25 degrees"; regex parsers miss temperature units
µ vs μMicro Sign (U+00B5)Greek Small Mu (U+03BC)Lab inventory searches for "µg" fail to match rows stored as "μg" without NFKC normalization
× vs xMultiplication Sign (U+00D7)Latin Small Letter x (U+0078)Dimension strings ("1920×1080" vs "1920x1080") fail exact-match filters and SKU lookups
⌀ vs ØDiameter Sign (U+2300)Latin Capital O with Stroke (U+00D8)CAD exports and BOM tables confuse Nordic letter Ø with mechanical diameter tolerance
Four-stage UTF-8 byte pipeline tracing é (U+00E9) encoded as bytes 0xC3 0xA9 rendering as café in UTF-8 versus café when misread as Windows-1252.
How UTF-8 mojibake happens: valid 2-byte UTF-8 sequences like 0xC3 0xA9 display as café whenever an app decodes them as Windows-1252.

1. Why Excel's TRIM() Fails on Non-Breaking Spaces (U+00A0)

One of the most frustrating spreadsheet bugs happens when you paste customer names, SKUs, or currency figures from a webpage or PDF into Microsoft Excel. Web pages frequently insert a Non-Breaking Space ( , U+00A0) to keep numbers from wrapping across lines.

Excel's standard =TRIM(A2) function only strips regular ASCII spaces (U+0020). It leaves U+00A0 completely untouched, causing =VLOOKUP() and =XLOOKUP() to return #N/A on values that look identical to the human eye. The exact Excel cleanup formula is:

=TRIM(SUBSTITUTE(A2, CHAR(160), " "))

That single formula converts every hidden non-breaking space into a standard space first, then trims leading, trailing, and doubled spaces cleanly.

Technical comparison of NFC precomposed café (4 code points, U+00E9) versus NFD decomposed café (5 code points, U+0065 + U+0301).
NFC vs NFD normalization: why two visually identical 'café' strings fail Ctrl + F search and SQL matching until normalized to NFC.

2. Curly Quotes & Minus Signs From Word, Slack, and Apple Notes

Microsoft Word, Google Docs, Apple Notes, and Slack all enable "Smart Quotes" and "Smart Dashes" by default. Type two hyphens -- and they silently turn into an em dash (, U+2014). Type a command-line flag like --force in a doc, copy it into Terminal, and your CLI tool rejects the em dash immediately.

Likewise, copying a negative number such as −12.5 from a statistics textbook or Wikipedia often brings along the typographic Minus Sign (U+2212). In Excel and CSV importers, −12.5 is stored as a text string rather than a number, so =SUM() quietly skips it without raising an error. Producing a wrong financial total! Read our full breakdown in Curly vs Straight Quotes.

Comparison of straight ASCII quotation marks required for JSON, Excel formulas, and HTML versus curly smart quotes designed for prose.
Straight ASCII quotes (" ') are mandatory in code, JSON, and Excel formulas; curly smart quotes (“ ”) belong strictly in editorial prose.

3. Canonical Decomposed Accents (NFD vs NFC) Breaking Search & URLs

Lookalikes are not limited to symbols. The Spanish letter can be stored in two legal Unicode ways:

  • NFC (Precomposed, 1 code point): U+00F1 (standard on Windows, Linux, and the web).
  • NFD (Decomposed, 2 code points): regular n (U+006E) plus Combining Tilde (U+0303), historically common in macOS filenames.

In a browser or database without Unicode normalization, a user searching for NFC Peña will get zero results if the record was imported from a Mac CSV in NFD Peña. Both display identically on screen, yet their byte lengths differ (2 bytes vs 3 bytes in UTF-8).

Comparison chart contrasting Braille Pattern Blank (U+2800) and Hangul Filler (U+3164) that work in WhatsApp and bios against trimmed spaces.
Which invisible Unicode character works where: Braille Blank (U+2800) for WhatsApp/Instagram vs Hangul Filler (U+3164) for Discord/games.

4. How to Inspect & Clean Hidden Lookalikes in 5 Seconds

Never eyeball suspicious text in a proportional font. Use two fast browser utilities built directly into this site:

  1. Paste the suspicious string into the Unicode Inspector to reveal the exact U+XXXX code point, official Unicode name, UTF-8 byte sequence, and hidden zero-width characters for every glyph.
  2. Run bulk pasted text through the Text Cleaner to replace non-breaking spaces, zero-width joiners, and smart quotes with clean ASCII equivalents before importing into Excel or SQL.

For deeper context on character standards and encoding, read Unicode Explained, Why Word Breaks Accented Characters on Paste, and our character guides for Degree (°) and Diameter (⌀).

Four-stage pipeline showing why double-clicking a UTF-8 CSV in Excel creates café and how Data -> From Text/CSV (65001) fixes it.
Import CSVs via Data → From Text/CSV with File Origin 65001 (UTF-8) and export as CSV UTF-8 so €, ñ, and é never corrupt.

Visual Step-by-Step Reference Cards

Before and after Excel comparison showing how text units break =SUM() while Ctrl + 1 Custom Number Formats show °C and m² with live math.
Use Ctrl + 1 Custom Number Formats (like 0.0" °C" or 0.00" m²") so cells display units cleanly while SUM() and charts keep calculating.
Four-block developer code matrix showing exact syntax for special characters in HTML entities, CSS content escapes, JavaScript Unicode escapes, and JSON.
Use the right escape syntax per layer: HTML entities (<, —), CSS backslash hex (\20AC), JS \uXXXX, and raw UTF-8 in JSON.
Four-stage visual pipeline distinguishing empty tofu boxes (missing font glyph) from replacement diamonds (corrupted bytes) and showing CSS fallback stacks.
Hollow □ tofu boxes mean the active font lacks that glyph. Fix with Segoe UI Symbol / Noto Sans fallback stacks and embedded PDF fonts.

Visual Quick-Reference Cheat Sheet

Side-by-side comparison table of visually identical Unicode lookalike characters such as hyphen-minus vs minus sign and straight vs curly quotes.
Eight Unicode character pairs that look identical on screen but carry completely different code points in Excel, SQL, and JSON.
Share:

HowToTypeThis Editorial Team

A small independent team that documents how to type symbols and accented letters, verified against Microsoft, Apple, and Unicode documentation. Spotted a mistake? Tell us and we will fix it.

More from the Blog

Tray
Copied to clipboard!
Ready to paste anywhere