use Encoding; my $record = 'whatever'; from_to($record, 'cp1252', 'utf-8');