use feature qw( say ); use Encode qw( encode ); say encode("UTF-8", "\N{LEFT DOUBLE QUOTATION MARK}") eq "\342\200\234"; # Output: 1