in reply to utf8, locale and regexp

Hmmm ... on Windows I can run:
use strict; use warnings; my $test = "État"; my $test2 = "É"; if ($test =~ /$test2/) {print "matches\n"} else {print "does not match +es\n"}
which results in the output of matches.

Not sure if that helps ... perhaps not.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: utf8, locale and regexp
by Anonymous Monk on Apr 10, 2007 at 15:11 UTC
    Nope: your script must be utf8. Namely the char 'É' should be utf8 encoded.