laziness, impatience, and hubris | |
PerlMonks |
Re: questions about character encodingby mirod (Canon) |
on Jul 10, 2002 at 23:24 UTC ( [id://180909]=note: print w/replies, xml ) | Need Help?? |
The problem is that when you write $string =~ s/[אבגדהו]/a/; the accented characters are in Mac encoding, not in UTF-8.So they never match in the string. You should be able to fix this problem using Unicode::Map8 or maybe, I am not (yet!) familiar with it, Encode, which will be part of the core in 5.8.0. --
In Section
Seekers of Perl Wisdom
|
|