How to convert letters with accents, umlauts, etc to their ASCII counterparts in Perl?

As usual, if you think of a problem which most certainly is not yours only, there’s already a solution on CPAN. ) In this case it’s called Text::Unidecode

use warnings;
use strict;
use utf8;
use Text::Unidecode;
print unidecode('ä, ö, ü, é'); # will print 'a, o, u, e'

Leave a Comment