Under the hood
What are invisible characters?
Unicode contains characters that take up no visible space at all, such as the zero-width space (U+200B), zero-width joiner (U+200D), word joiner (U+2060) and the byte order mark (U+FEFF). Others look exactly like a normal space but behave differently, like the non-breaking space (U+00A0) or the narrow no-break space (U+202F).
There are also control characters that change how text is displayed: bidirectional overrides (U+202A–U+202E, U+2066–U+2069) can make text appear in a different order from how it is stored, which is why they are used in "Trojan Source" attacks on source code and in file names that hide their real extension.