Text::StripAccents - removes accented & special characters from strings
use Text::StripAccents; my $Stripaccent = Text::StripAccents->new(); my $convertedString = $StripAccents->strip($unconvertedString);
use Text::StripAccents; stripaccents($string);
This simple module takes accented characters and replaces them with their anglicised ASCII counterparts, e.g. Ü becomes U. It currently ONLY supports Latin1. If there are any characters I've missed out that you think should be included, please mail me and I'll add them in.
This is a pure perl module with no prerequisites.
Text::Unaccent is a much more advanced utility to do the same job, but with a C dependency.
0.11 - bugfix to clarify the documentation, as per Dobrica Pavlinusic's feedback.
Copyright 2005 by Charles Colbourn, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
Charles Colbourn - firstname.lastname@example.org
(Character mapping hash supplied by Nigel Currie).