问题描述
publicvoidshowEmailorDown(stringfilePath){stringpath;MimeReadermr;IOExceptionex;FileStreamfs;stringencoding;stringmessage="";//stringemfj=base.Request.Form["emailfj"];//stringemc=base.Request.Form["emailContent"];if(base.Request.Form["emailContent"]!=null){path=filePath+HttpUtility.UrlDecode(Convert.ToString(base.Request.Form["path"]));if(File.Exists(path)){mr=newMimeReader(File.ReadAllLines(path));message=mr.CreateMimeEntity().ToMailMessageEx().Body;/内容}else{message="1";}base.Response.Write(message);base.Response.End();message显示的是乱码:戮脻脙驴脠脮脫脢卤篓2脭脗1脠脮卤篓碌脌拢卢脜=娄脭录虏录脗鲁驴脣脕脰脥镁脕庐脣鹿卤陇脪禄虏脰驴=芒31脠脮脭莽脡脧路垄脡煤7录露麓.....
解决方案
时间: 2024-10-23 08:59:24