Text::StripAccents - removes accented & special characters from strings
use Text::StripAccents; my $Stripaccent = Text::StripAccents->new(); my $convertedString = $StripAccents->strip($unconvertedString);
OR
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.
None.
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 - charlesc@g0n.net
(Character mapping hash supplied by Nigel Currie).
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Ü'. Assuming CP1252
To install Text::StripAccents, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::StripAccents
CPAN shell
perl -MCPAN -e shell install Text::StripAccents
For more information on module installation, please visit the detailed CPAN module installation guide.