http://www.perlmonks.org?node_id=1015961


in reply to Replacing non ascii in string

Perhaps Text::Unidecode would be helpful (please forgive the lack of complete code formatting, as doing so eliminates displaying the characters the module decodes):

use strict; use warnings; use utf8; use Text::Unidecode;

my $string = q/ and and and /;

print unidecode($string);

Output:

' and ' " and " and a