ait has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use Encode; my $perl_str = "áéíóúñü"; print "IN UTF:$perl_str\n"; my $iso_str = encode("iso-8859-1", $perl_str); print "IN ISO:$iso_str\n"; my $utf_str = decode("iso-8859-1", $iso_str); print "BACK IN UTF:$utf_str\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to test different encoding
by jethro (Monsignor) on Sep 16, 2008 at 00:29 UTC | |
by ait (Hermit) on Sep 16, 2008 at 19:06 UTC | |
by sunshine_august (Scribe) on Sep 18, 2008 at 02:54 UTC | |
by jethro (Monsignor) on Sep 22, 2008 at 15:12 UTC |