Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: tr/// latin1 on utf8 stringby ikegami (Patriarch) |
on Mar 13, 2008 at 15:54 UTC ( [id://673999]=note: print w/replies, xml ) | Need Help?? |
You can't work with strings if you don't know how they were encoded. Without that info, all you have is a bunch of meaningless bytes. Once you get your encoding problem straightened out, you might be interested in Text::Unidecode. I'm not sure how it handles the euro symbol specifically, but it's great at ASCIIfying data.
In Section
Seekers of Perl Wisdom
|
|