Text::Unaccent - Remove accents from a string
use Text::Unaccent; $unaccented = unac_string($charset, $string); $unaccented = unac_string_utf16($string);
Text::Unaccent is a module that remove accents from a string. unac_string converts the input string from the specified charset to UTF-16 and call unac_string_utf16 to return the unaccented equivalent. The conversion from and to UTF-16 is done with iconv(1).
unac_string
unac_string_utf16
Return the unaccented equivalent of the string $string. The character set of $string is specified by the $charset argument. The returned string is coded using the same character set. Valid values for the $charset argument are character sets known by iconv(1). Under GNU/Linux try iconv --list for a complete list.
$string
$charset
iconv --list
Return the unaccented equivalent of the string $string. The character set of $string must be UTF-16.
Loic Dachary (loic@senga.org) http://www.sourceforge.net/projects/unac/
iconv(1).
To install Text::Unaccent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Unaccent
CPAN shell
perl -MCPAN -e shell install Text::Unaccent
For more information on module installation, please visit the detailed CPAN module installation guide.