Re: Problem processing UTF-8 strings from email
[email protected] (Neil Gunton) Sat, 12 Jan 2008 18:50:06 -0600
| Newsgroups | perl.unicode |
|---|---|
| Message-ID | <[email protected]> |
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