perl-unicode

Re: Problem processing UTF-8 strings from email

2008-01-12 17:50:21
Tatsuhiko Miyagawa wrote:
  use Encode;
  use Encode::MIME::Header;
  decode("MIME-Header", $bytes);

to get the Unicode strings for these MIME encoded characters.

If you want to turn them into HTML entities, you can say:

  encode("ascii", decode("MIME-Header", $bytes), Encode::FB_HTMLCREF);

Wonderful, yes, that worked! Thanks VERY much. I'm slapping my forehead for failing to realize that this was MIME encoding-related.

:-)

/Neil

<Prev in Thread] Current Thread [Next in Thread>