my $str = $original_value; Dump $str; $str = decode("utf-8", $str); Dump $str; Dump encode('latin1', $str);