That didn't work exactly, but I poked around a little and tried,
use utf8;
use Encode qw(encode);
print encode 'iso-8859-2', 'Župljanin and Stanišić'."\n";
And that worked. I should add that "use utf8;" has got to be there, it doesn't work without it.
Thanks for the tip.
In reply to Re^2: Cannot preserve Latin 2 character sets in Perl
by PerlPksky
in thread Cannot preserve Latin 2 character sets in Perl
by PerlPksky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |