use Encode 'decode'; my $string= decode 'UTF-8', "\x{c3}\x{a9}"; ...