At 3:51 am -0800 25/11/05, Gisle Aas wrote:
John Delacour <[EMAIL PROTECTED]> writes:
> "use utf8" does nothing.
It's supposed to. If it doesn't make the source interpreted as UTF-8
then it's a bug.
...and it works for me (perl 5.8.7).
You're right, and it does (5.8.7 here too)
#!/usr/bin/perl
use utf8;
$str = 'it’s a smart quote';
if ($str =~ m/\x{2019}/){
print "found"
} else {
print "\x{2019} not found"
}
I can only suppose that John Horner has his BBEdit document set to
Macintosh encoding or something. All my BBEdit prefs are set to
UNIX/UTF-8.
JD