use Text::Iconv; my $converter = Text::Iconv->new("utf-8", "iso-8859-1"); my $decoded = $converter->convert(param('test'));