use Encode; my $string=Encode::decode('UTF-16LE',$data_from_google); $string=~/what you want/;