my $octets = $cgi->param('text'); my $string = decode("utf-8", $octets);