my $a = "\\xC4\\x80"; utf8::decode($a); # does not work, \\x are literal ascii. # is still the same. $a =~ s/\\x(\w\w)/\x$1/g; # Does not work. \x is interpreted without the code points.