At 12:17 pm +1100 25/11/05, [EMAIL PROTECTED] wrote:
...let me reduce my question to this:
#!/usr/bin/perl
$str = 'it's a smart quote';
if ($str =~ m/\x{2019}/){
print "found"
} else {
print "not found"
}
BBEdit confirms that the third char in 'it's a smart quote' is 2019,
but the regex doesn't match, with or without "use utf8".
"use utf8" does nothing. Try this:
#!/usr/bin/perl
use encoding "utf-8";
$str = 'it’s a smart quote';
if ($str =~ m/\x{2019}/){
print "found"
} else {
print "\x{2019} not found"
}
JD