zhlwwj1314 发表于 2008-1-16 11:36:12

同样是“呵呵”,都是base64编码,为什么主题,正文,附件内容的编码不一样?

TempStringSplit 0+OK 2965 octets
TempStringSplit 1Return-Path: <z@z.com>
TempStringSplit 2Received: from zte (unknown )
TempStringSplit 3   by ztenj.com with CMailServer 5.2 SMTP; Wed, 16 Jan 2008 11:02:27 +0800
TempStringSplit 4From: "=?gb2312?B?1qO6xg==?=" <z@z.com>
TempStringSplit 5To: <z@z.com>
TempStringSplit 6Subject: =?gb2312?B?use6xw==?=
TempStringSplit 7Date: Wed, 16 Jan 2008 11:02:27 +0800
TempStringSplit 8MIME-Version: 1.0
TempStringSplit 9Content-Type: multipart/mixed;
TempStringSplit 10   boundary="----=_NextPart_000_001B_01C8582F.47EE35C0"
TempStringSplit 11X-Mail-Type: 0
TempStringSplit 12X-Mailer: Microsoft Office Outlook, Build 11.0.5510
TempStringSplit 13Thread-Index: AchX7DmmowWE9j8YRRSKcTCe4HlB5A==
TempStringSplit 14X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
TempStringSplit 16This is a multi-part message in MIME format.
TempStringSplit 18------=_NextPart_000_001B_01C8582F.47EE35C0
TempStringSplit 19Content-Type: multipart/alternative;
TempStringSplit 20   boundary="----=_NextPart_001_001C_01C8582F.47EE35C0"
TempStringSplit 23------=_NextPart_001_001C_01C8582F.47EE35C0
TempStringSplit 24Content-Type: text/plain;
TempStringSplit 25   charset="gb2312"
TempStringSplit 26Content-Transfer-Encoding: base64
TempStringSplit 28use6xw0KDQo=
TempStringSplit 30------=_NextPart_001_001C_01C8582F.47EE35C0
TempStringSplit 31Content-Type: text/html;
TempStringSplit 32   charset="gb2312"
TempStringSplit 33Content-Transfer-Encoding: quoted-printable
TempStringSplit 35<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
TempStringSplit 36xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
TempStringSplit 37xmlns=3D"http://www.w3.org/TR/REC-html40">
TempStringSplit 39<head>
TempStringSplit 40<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
TempStringSplit 41<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
TempStringSplit 42<style>
TempStringSplit 43<!--
TempStringSplit 44   /* Font Definitions */
TempStringSplit 45   @font-face
TempStringSplit 46   {font-family:=CB=CE=CC=E5;
TempStringSplit 47   panose-1:2 1 6 0 3 1 1 1 1 1;}
TempStringSplit 48@font-face
TempStringSplit 49   {font-family:"\@=CB=CE=CC=E5";
TempStringSplit 50   panose-1:2 1 6 0 3 1 1 1 1 1;}
TempStringSplit 51   /* Style Definitions */
TempStringSplit 52   p.MsoNormal, li.MsoNormal, div.MsoNormal
TempStringSplit 53   {margin:0cm;
TempStringSplit 54   margin-bottom:.0001pt;
TempStringSplit 55   text-align:justify;
TempStringSplit 56   text-justify:inter-ideograph;
TempStringSplit 57   font-size:10.5pt;
TempStringSplit 58   font-family:"Times New Roman";}
TempStringSplit 59a:link, span.MsoHyperlink
TempStringSplit 60   {color:blue;
TempStringSplit 61   text-decoration:underline;}
TempStringSplit 62a:visited, span.MsoHyperlinkFollowed
TempStringSplit 63   {color:purple;
TempStringSplit 64   text-decoration:underline;}
TempStringSplit 65span.EmailStyle17
TempStringSplit 66   {mso-style-type:personal-compose;
TempStringSplit 67   font-family:Arial;
TempStringSplit 68   color:windowtext;}
TempStringSplit 69   /* Page Definitions */
TempStringSplit 70   @page Section1
TempStringSplit 71   {size:595.3pt 841.9pt;
TempStringSplit 72   margin:72.0pt 90.0pt 72.0pt 90.0pt;
TempStringSplit 73   layout-grid:15.6pt;}
TempStringSplit 74div.Section1
TempStringSplit 75   {page:Section1;}
TempStringSplit 76-->
TempStringSplit 77</style>
TempStringSplit 79</head>
TempStringSplit 81<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
TempStringSplit 82style=3D'text-justify-trim:punctuation'>
TempStringSplit 84<div class=3DSection1 style=3D'layout-grid:15.6pt'>
TempStringSplit 86<p class=3DMsoNormal><font size=3D1 face=3D=CB=CE=CC=E5><span =
TempStringSplit 87style=3D'font-size:9.0pt;
TempStringSplit 88font-family:=CB=CE=CC=E5'>=BA=C7=BA=C7</span></font><font size=3D1 =
TempStringSplit 89face=3DArial><span lang=3DEN-US
TempStringSplit 90style=3D'font-size:9.0pt;font-family:Arial'><o:p></o:p></span></font></p>=
TempStringSplit 93</div>
TempStringSplit 95</body>
TempStringSplit 97</html>
TempStringSplit 99------=_NextPart_001_001C_01C8582F.47EE35C0--
TempStringSplit 101------=_NextPart_000_001B_01C8582F.47EE35C0
TempStringSplit 102Content-Type: text/plain;
TempStringSplit 103   name="zh3h22.txt"
TempStringSplit 104Content-Transfer-Encoding: base64
TempStringSplit 105Content-Disposition: attachment;
TempStringSplit 106   filename="zh3h22.txt"
TempStringSplit 107X-Attachment-Size: 10
TempStringSplit 108X-Attachment: False
TempStringSplit 109Content-ID: 1
TempStringSplit 11077u/5ZG15ZG1
TempStringSplit 111------=_NextPart_000_001B_01C8582F.47EE35C0--

附件:TempStringSplit 11077u/5ZG15ZG1
正文:TempStringSplit 28use6xw0KDQo=
主题:TempStringSplit 6Subject: =?gb2312?B?use6xw==?=          // use6xw==

哪位朋友指点一二?

bailindf 发表于 2008-2-3 10:24:10

编码后应该是一样的,至少subjec和text应该一样,他们都是经过 gb2312, base64 编码。看起来text比subject多几个字符,可能是后面有空格之类的其他字符。
附件因为没有经过gb2312编码,所以和subject,text不一样。
页: [1]
查看完整版本: 同样是“呵呵”,都是base64编码,为什么主题,正文,附件内容的编码不一样?