perl -e '$x="\xe9"; $y="\x{00e9}"; print "\\xe9 eq \\x00e9\n" if ($x eq $y)' # output is: \xe9 eq \x00e9