Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Encode\MIME\Header.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Encode::MIME::Header -- MIME 'B' and 'Q' header encoding</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Encode::MIME::Header -- MIME 'B' and 'Q' header encoding</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#abstract">ABSTRACT</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#bugs">BUGS</a></li> <li><a href="#see_also">SEE ALSO</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Encode::MIME::Header -- MIME 'B' and 'Q' header encoding</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> use Encode qw/encode decode/; $utf8 = decode('MIME-Header', $header); $header = encode('MIME-Header', $utf8);</pre> <p> </p> <hr /> <h1><a name="abstract">ABSTRACT</a></h1> <p>This module implements <a href="http://www.ietf.org/rfc/rfc2047.txt" class="rfc">RFC 2047</a> Mime Header Encoding. There are 3 variant encoding names; <code>MIME-Header</code>, <code>MIME-B</code> and <code>MIME-Q</code>. The difference is described below</p> <pre> decode() encode() ---------------------------------------------- MIME-Header Both B and Q =?UTF-8?B?....?= MIME-B B only; Q croaks =?UTF-8?B?....?= MIME-Q Q only; B croaks =?UTF-8?Q?....?=</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>When you decode(=?<em>encoding</em>?<em>X</em>?<em>ENCODED WORD</em>?=), <em>ENCODED WORD</em> is extracted and decoded for <em>X</em> encoding (B for Base64, Q for Quoted-Printable). Then the decoded chunk is fed to decode(<em>encoding</em>). So long as <em>encoding</em> is supported by Encode, any source encoding is fine.</p> <p>When you encode, it just encodes UTF-8 string with <em>X</em> encoding then quoted with =?UTF-8?<em>X</em>?....?= . The parts that <a href="http://www.ietf.org/rfc/rfc2047.txt" class="rfc">RFC 2047</a> forbids to encode are left as is and long lines are folded within 76 bytes per line.</p> <p> </p> <hr /> <h1><a name="bugs">BUGS</a></h1> <p>It would be nice to support encoding to non-UTF8, such as =?ISO-2022-JP? and =?ISO-8859-1?= but that makes the implementation too complicated. These days major mail agents all support =?UTF-8? so I think it is just good enough.</p> <p>Due to popular demand, 'MIME-Header-ISO_2022_JP' was introduced by Makamaka. Thre are still too many MUAs especially cellular phone handsets which does not grok UTF-8.</p> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Encode.html">the Encode manpage</a></p> <p>RFC 2047, <a href="http://www.faqs.org/rfcs/rfc2047.html">http://www.faqs.org/rfcs/rfc2047.html</a> and many other locations.</p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Encode::MIME::Header -- MIME 'B' and 'Q' header encoding</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de