
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] Decode MIME shift_jis
- Date: Mon, 14 Apr 2003 17:04:57 +0900
- From: Batara Kesuma <bkesuma@example.com>
- Subject: [tlug] Decode MIME shift_jis
Hi all,
I have perl script that inject all incoming emails to MySQL. Now usually
Japanese email use this for the header part:
=?ISO-2022-JP?B?
I can decode it using:
use NKF;
$text = nkf("-m", $mime);
or
use Jcode;
$text = Jcode::->new($mime)->mime_decode();
But sometimes Microsoft Outlook sends email with header part looks like:
=?shift_jis?Q?
How can I encode this? I tried:
$text = nkf("-mQ", $mime)
and also
$text = Jcode::->new($mime)->mime_decode();
But it didn't work. Anybody knows? Thank you very much.
--bk
Home |
Main Index |
Thread Index