in reply to Issue with unac_string()
#!/usr/bin/perl -l use strict; use warnings; use Text::Unaccent::PurePerl qw(unac_string); use Encode; require Encode::Detect; my $str = "Los-Cabos-Meli\u00e1"; my $utf8 = decode('Detect', $str); binmode STDOUT, ":encoding(UTF-8)"; print "Original : $utf8"; my $unaccented = unac_string($utf8); print "Unaccent : $unaccented";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Issue with unac_string()
by Anonymous Monk on May 17, 2012 at 12:48 UTC | |
|
Re^2: Issue with unac_string()
by Anonymous Monk on May 17, 2012 at 12:57 UTC | |
by Khen1950fx (Canon) on May 17, 2012 at 14:05 UTC |