✳ copimoji.

Invisible characters: inspect before removing

Published · Copimoji editorial team

A blank-looking character may be a space, a non-breaking space or a formatting control. A search that treats them as identical can hide why a line breaks or a comparison fails.

CharacterUnicodeInspect this characterCopy
SPACEU+0020Inspect this character
NO-BREAK SPACEU+00A0Inspect this character
NARROW NO-BREAK SPACEU+202FInspect this character
ZERO WIDTH JOINERU+200DInspect this character

Paste a short sample in the inspector and examine the code points. In A B, U+00A0 prevents an ordinary break at that space. In an emoji sequence, U+200D may connect several characters into one glyph.

Do not strip every invisible character. Work on a copy, identify the function, then replace only what the destination system requires. Removing a joiner may split an emoji or change shaping in other writing systems.

Sources and further reading