Re: 'Content-Type' problem
[email protected] Thu, 22 Apr 2004 22:41:12 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
> I've have the same problem myself, and here are some solutions I've
> found for the charset part.
>
> //Might contain errors, I'm working from memory here.
> $body = Mail::Message::Body::Lines->new('data' => @lines, 'data' =>
> 'charset: utf-8');
>
This looks strange to me: With 'data' option, I would think that the charset line
will just be another line of the body instead of being in the headers.
> In that files replace all instances of "us-ascii" with "utf-8".
>
Yes, but if a bug it is, it doesn't do any good: Whatever the programmer asks
the 'Content-Type' to be, it will always stay the same (this time 'utf-8', but what
if, in another script, I need e.g. 'iso-8859-1').
>
> But I guess there are easier methods, I've just haven't found out how.
That's what I'm asking: If it is bug, it should be fixed. If it isn't, then I'm
overlooking the right way to do it, and I'd be glad if someone could point it
to me.
> Also I'm not sure about fixing quoted-printable.
>
But this one works fine! I.e. the 'transfer_encoding' option does indeed
reflect in the created mail.
Best regards,
Gilles