6 个解决方案
#1
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
#2
编码转换一下,看一下System.Text中有Encoding类吧
#3
各位,有没有现成代码,看看???
我已经得到了一个string m_Body;
如何在Response.Write(m_Body)显示正常的内容???
我已经得到了一个string m_Body;
如何在Response.Write(m_Body)显示正常的内容???
#4
试试,
encoding.default.getstring(m_body)
encoding.default.getstring(m_body)
#5
Server.HtmlEncode()转换一下内容看看!
#6
好像都不行呀!!!我的页面最后显示为:
connected
01
+OK 1 1493
+OK
Received: from server ([61.149.10.44]) by gasinfo_webserv.gasinfo.com.cn with Microsoft SMTPSVC(5.0.2195.4453);
GetMessageSubject:test
GetMessageBody:This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu dD0idGV4dC9odG1sOyBjaGFyc2V0PWdiMjMxMiI+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNi4w MC4yNzE5LjIyMDAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8 Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElW PjwvQk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0005_01C24D1B.694D3B00--
connected
01
+OK 1 1493
+OK
Received: from server ([61.149.10.44]) by gasinfo_webserv.gasinfo.com.cn with Microsoft SMTPSVC(5.0.2195.4453);
GetMessageSubject:test
GetMessageBody:This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu dD0idGV4dC9odG1sOyBjaGFyc2V0PWdiMjMxMiI+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNi4w MC4yNzE5LjIyMDAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8 Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElW PjwvQk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0005_01C24D1B.694D3B00--
#1
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
#2
编码转换一下,看一下System.Text中有Encoding类吧
#3
各位,有没有现成代码,看看???
我已经得到了一个string m_Body;
如何在Response.Write(m_Body)显示正常的内容???
我已经得到了一个string m_Body;
如何在Response.Write(m_Body)显示正常的内容???
#4
试试,
encoding.default.getstring(m_body)
encoding.default.getstring(m_body)
#5
Server.HtmlEncode()转换一下内容看看!
#6
好像都不行呀!!!我的页面最后显示为:
connected
01
+OK 1 1493
+OK
Received: from server ([61.149.10.44]) by gasinfo_webserv.gasinfo.com.cn with Microsoft SMTPSVC(5.0.2195.4453);
GetMessageSubject:test
GetMessageBody:This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu dD0idGV4dC9odG1sOyBjaGFyc2V0PWdiMjMxMiI+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNi4w MC4yNzE5LjIyMDAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8 Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElW PjwvQk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0005_01C24D1B.694D3B00--
connected
01
+OK 1 1493
+OK
Received: from server ([61.149.10.44]) by gasinfo_webserv.gasinfo.com.cn with Microsoft SMTPSVC(5.0.2195.4453);
GetMessageSubject:test
GetMessageBody:This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 dGVzdA0K ------=_NextPart_000_0005_01C24D1B.694D3B00 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu dD0idGV4dC9odG1sOyBjaGFyc2V0PWdiMjMxMiI+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNi4w MC4yNzE5LjIyMDAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8 Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj50ZXN0PC9GT05UPjwvRElW PjwvQk9EWT48L0hUTUw+DQo= ------=_NextPart_000_0005_01C24D1B.694D3B00--