If I have two strings which represent the same unicode string, like:
stùand
st\x{f9}how can I test for string equality in a robust way? (To give some context, one is coming to the app as a CGI parameter, the other froma database. But essentially, either maybe represented as utf8, or as escape sequences. A robust "eq" is needed.)
update: I have tried :
my $temp = sprintf( "%s", $escaped_string );to try to lose the escaped chars, without success.
In reply to string comparison with escape sequences by danmcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |