Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: convert utf8 to iso-8859-2 to octal codeby ikegami (Patriarch) |
on Oct 24, 2011 at 21:54 UTC ( [id://933489]=note: print w/replies, xml ) | Need Help?? |
It means the character does not exist in iso-8859-2. "-" does exist, so it's not what you actually had. Maybe it was "–" or "—" or one of the other various dashes. You can have encode do something other than substitute with "?" by using its third parameter. I think you would like to pass your text through Text::Unidecode before encoding it.
In Section
Seekers of Perl Wisdom
|
|