use constant APOSTROPHE => "\xE2\x80\x99" ; my $string = "wjzw’xl cowuxze."; $string =~ s/APOSTROPHE/'/ ;