Strip diacritics from Unicode text so accented letters become their base Latin forms (for example é → e, ñ → n). The operation uses Unicode normalization (NFD) and removes combining marks.
When to use it
- Build ASCII-only search indexes from internationalized content
- Prepare names for legacy systems that only accept basic Latin characters
- Compare strings ignoring accent differences
Limitations
Some characters do not decompose cleanly with NFD alone. Ligatures and emoji are not transliterated to phonetic ASCII. For URL slugs, prefer the dedicated slugify subtool which also replaces spaces and punctuation.
Example
café becomes cafe after accent stripping. A longer phrase such as São Paulo — niño becomes Sao Paulo — nino (punctuation and spaces remain; only combining marks are removed). Use this before building ASCII search keys, then run slugify separately if you also need hyphenated URL segments.