3 ms·
If you needed to do this in PHP (or any other language with the ICU transliterator): transliterator_transliterate('Any-Latin; Latin-ASCII', 'Input string')
by ars 12y ago
If you needed to do this in PHP (or any other language with the ICU transliterator):
transliterator_transliterate('Any-Latin; Latin-ASCII', 'Input string');
It's not exactly the same thing - it will convert letters into ASCII characters that sort of sound right, not just strip diacritics.
It's possible to simply strip diactricts too, probably something like:
'NFD; [:Punctuation:] Remove;'