我的邮件服务器是Lotus Notes6,正文也是用base64加密的,但FoxMail解出来就没有问题,我将原文自己解密就出问题了。

解决方案 »

  1.   

    >>> strSrc=Encoding.Default.GetString(by);
    try to play with other encoding, for example strSrc=Encoding.Unicode.GetString(by);or strSrc=Encoding.UTF8.GetString(by);
      

  2.   

    改了Encoding.Unicode.GetString(by);或strSrc=Encoding.UTF8.GetString(by);都不行,更加面目全飞,现在的情况是原文基本上能解出来,但有部份地方出现乱码
      

  3.   

    I have no idea, try to locate the bytes which are causing the problem and see what they are
      

  4.   

    看过http://expert.csdn.net/Expert/topic/2289/2289979.xml?temp=.1182825
    情况和我的基本上一样,
    http://expert.csdn.net/Expert/topic/2289/2289979.xml?temp=.1182825虽然没讲解决方法,但我已经解决了这一贴;
    将base64的编码分开用Encoding.GetEncoding("GB2312").GetString(byte[])来解码会出现这样的问题,要将每一行解出来的byte[]合并后再解码后问题解决。
    至于我自己的问题待证实。