sub test { my $response = "ייי"; utf8::encode($response); return $response; } #### $response = utf8::encode($response);