daptal has asked for the wisdom of the Perl Monks concerning the following question:
where as if i use the cmd line optionuse strict; use Text::Iconv; my $converter = Text::Iconv->new('UTF-8','UTF-8'); my @str = ('galicia','a coruñaa',,'a coruñaa',,'baĂCĂE kasĂCĂD nĂCĂ +D n msn ĂCĂE ifresini'); push (@str ,' galicia a coruďż˝a '); foreach my $q (@str){ my $result = $converter->convert($q); print "$q ==> $result \n"; } Result:- galicia ==> galicia a coruñaa ==> a coruñaa a coruñaa ==> a coruñaa baĂCĂE kasĂCĂD nĂCĂD n msn ĂCĂE ifresini ==> baĂCĂE kasĂCĂD nĂCĂD n +msn ĂCĂE ifresini galicia a coruďż˝a ==> galicia a coruďż˝a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text::Iconv module usage
by graff (Chancellor) on Feb 17, 2009 at 02:20 UTC | |
|
Re: Text::Iconv module usage
by almut (Canon) on Feb 17, 2009 at 02:05 UTC | |
|
Re: Text::Iconv module usage
by syphilis (Archbishop) on Feb 17, 2009 at 05:34 UTC |