Re: sending chinese character emails via Net::SMTP using Mime-tools
From: James O'Brien (jobrien_at_techtarget.com)
Date: 03/08/04
- Next message: Malcolm Dew-Jones: "Re: Anydata CSV format length limit?"
- Previous message: R Cubed: "Re: DBI Not Working at All"
- In reply to: pkent: "Re: sending chinese character emails via Net::SMTP using Mime-tools"
- Next in thread: Alan J. Flavell: "Re: sending chinese character emails via Net::SMTP using Mime-tools"
- Reply: Alan J. Flavell: "Re: sending chinese character emails via Net::SMTP using Mime-tools"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 8 Mar 2004 11:05:27 -0800
> I'd suspect that a robust way of sending UTF8 content is to use a
> content transfer encoding of base64 and a content type of 'text/plain;
> charset=utf-8' but I can't find any references to that online so it may
> not be correct. But if anyone here know I'd certainly be interested in
> finding the correct way.
>
> P
I received the following answer from another group (comp.mail.misc)
writes:
Correct. Don't forget to insert the "Mime-Version: 1.0" and
"Content-Type:
text/plain; charset=utf-8" headers.
If your SMTP server advertizes "8BITMIME", don't even bother with
quoted-printable (unless it's Qmail). Just use
"Content-Transfer-Encoding:
8bit", and forget the whole thing.
You might run into a mail client that doesn't grok utf-8. In that
case, you
will need to transcode your content to big-5 or gb2312 (or something
similar), and adjust the headers accordingly.
====
The part that worries me is the last paragraph. Judging from that and
other stuff I've read (since I might be dealing with a variety of
clients/mail servers), I might want to use gb2312(the windows
simplified chinese) and quoted-printable or base64 - like you said.
Not sure which is preferrable. base64 seems more standard.
The Mime::Tools and maybe even Mime::Lite (I assume) will handle the
encoding.
I'll keep you posted.
- Next message: Malcolm Dew-Jones: "Re: Anydata CSV format length limit?"
- Previous message: R Cubed: "Re: DBI Not Working at All"
- In reply to: pkent: "Re: sending chinese character emails via Net::SMTP using Mime-tools"
- Next in thread: Alan J. Flavell: "Re: sending chinese character emails via Net::SMTP using Mime-tools"
- Reply: Alan J. Flavell: "Re: sending chinese character emails via Net::SMTP using Mime-tools"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|