Invisible does not mean empty
A text file is a sequence of encoded characters. Some characters control how text behaves rather than drawing a visible shape on screen.
Spaces, joiners, directional marks and byte-order marks can therefore be present even when the passage appears ordinary.
Why these characters appear
They may be added by word processors, websites, PDFs, messaging apps or language-aware keyboards. Many are legitimate and important in multilingual text.
Problems arise when a destination does not expect them or when copied content carries unnecessary formatting residue.
Common examples
Different invisible characters serve different purposes and should not all be treated alike.
- U+200B ZERO WIDTH SPACE can mark a potential break.
- U+00A0 NO-BREAK SPACE prevents a line break.
- Joiners and directional marks can be essential for correct language display.
Inspect before removing
Reveal the exact code point and its location, then decide whether it is expected in context.
Keep an original copy and remove only characters that are demonstrably unwanted.
Further reading
Primary references used to keep this guide grounded.