[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIME text/plain attach with Shift_JIS (CP932)



Hi,

Now, I try to test MHonArc2002-12-16-snap.

Sometime, I would like to send the mail with some attachement in
the plain-text-file wrote with Shift_JIS for MS Windoze users.

;; Japanese Windows using Shift_JIS, the simple text file wrote with
;; Shift_JIS is easy hadling and editing with NOTEPAD for a lot of
;; Windoze users.

MHonArc could not handle these type attachement yet?

 Problem: unintelligible sequence of characters.
          plain/text file could not be attachement (only inline..).

If I send text/plain part with ISO-2022-JP or EUC-JP, view only
inline(would not be attachment), but no problem for reading.

like these
(I try content-disposition: attachment with base64)

このファイルの形式は、

文字コード(charset)    : Shift_JIS
改行コード(line-break) : CR LF

です。

MHonArc converted as follow (source);
(I try content-disposition: inline with base64)

<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->

<pre>&#x98DB;&#x7530;&#x3067;&#x3059;&#x3002;

&#x3053;&#x308C;&#x306F;&#x3001;text/plain Shift_JIS &#x306A;&#x30C6;&#x30AD;&#x30B9;&#x30C8;&#x30D5;&#x30A1;&#x30A4;&#x30EB;&#x6DFB;&#x4ED8;&#x306E;&#x30C6;&#x30B9;&#x30C8;&#x3067;&#x3059;&#x3002;

 == attachment spec ==
 o text/plain; charset=Shift_JIS (CRLF)
 o content-disposition: attachment;
 o encoding: base64

</pre><pre>?&#xFF71;?&#xFF8C;?t?@?C???&#xFF8C;?`?&#xFF6E;?&#xFF8D;?A

?&#xFF76;???R?[?h(charset)    : Shift_JIS
???s?R?[?h(line-break) : CR LF

?&#xFF85;?&#xFF77;?B




</pre><pre>

</pre><pre>&#x3046;&#x307E;&#x304F;&#x30A2;&#x30FC;&#x30AB;&#x30A4;&#x30D6;&#x51FA;&#x6765;&#x308B;&#x3067;&#x3057;&#x3087;&#x3046;&#x304B;?
I copy and convert charset CharEnt/EUC_JP.pm to CharEnt/SHIFT_JIS.pm
(trying by NKF and XEmacs 21.4.10 with mule-ucs, and Emacs 21.2 with mule-ucs)

;; I just had made "2002-12-02-snap" style one, refer from
;; http://www.unicode.org/ (-;
;; http://www.stained-g.net/shinichiro/mhonarc/CP932.pm.gz (and also bz2)
;; It's noneed now..

and adding follow 1 line in CharEnt.pm;

line 121:    'shift-jis'      => 'MHonArc/CharEnt/SHIFT_JIS.pm'

;; I'm sorry, I could not understand Perl..

I must through the sub functions in CharEnt.pm?

My .mrc file as follow;

<DecodeHeads>
<CharsetConverters>
ISO-2022-JP;    MHonArc::CharEnt::str2sgml; MHonArc/CharEnt.pm
Shift_JIS;      MHonArc::CharEnt::str2sgml; MHonArc/CharEnt.pm
iso-8859-1;     MHonArc::CharEnt::str2sgml; MHonArc/CharEnt.pm
iso-8859-4;     MHonArc::CharEnt::str2sgml; MHonArc/CharEnt.pm
</CharsetConverters>

<MIMEARGS>
m2h_external::filter; attachcheck
</MIMEARGS>

<MIMEFILTERS>
m2h_text_plain::filter; attachcheck,asis:us-ascii,default=iso-2022-jp
</MIMEFILTERS>

[...]

If I had some wrong settings, please pointing out.

Thanks.


-- 
  Shinichiro HIDA  mailto:shinichiro@stained-g.net
  GPG fingerprint = 5F2D 1656 FFF6 F691 A51C  5E61 E416 D398 470C 1CE9

[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]