MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.61k stars 627 forks source link

邮件正文乱码问题 #1778

Open xichao520 opened 6 years ago

xichao520 commented 6 years ago

Android 官方提供的demo,获取到的邮件正文html字符串中文乱码

¸ÃÓʼþÀ´×ÔwindowsÍøÒ³°æ163ÓÊÏä
                                                                 <br />
                                                                 <br />
                                                                 <p><span title="neteasefooter">&nbsp;</span></p>
                                                                 </body>
                                                                 </html>
                                                                 </div>
yuanlida commented 6 years ago

Set html decoding to utf-8.

xichao520 commented 5 years ago

Set html decoding to utf-8.

my code: webView.loadDataWithBaseURL(null, html, "text/html", "utf-8", null);

Alrict commented 4 years ago

将html解码设置为utf-8。

我的代码:webView.loadDataWithBaseURL(null,html,“ text / html”,“ utf-8”,null);

你好,你的乱码问题解决了吗?我最近也在android上使用mailcore2,发现邮件的主题解析不出来,邮件的正文是乱码,如果您有解决方案,烦请告知,感谢!

wuhanzhouguanjie commented 4 years ago

有解决这个问题嘛

Alrict commented 4 years ago

没有解决,我现在用的方案是javamail+msilcore2一起配合使用,javamail的解析效率太低了,如果你有更好的解决方案,烦请告知

---原始邮件--- 发件人: "wuhanzhouguanjie"<notifications@github.com> 发送时间: 2020年1月3日(周五) 下午5:30 收件人: "MailCore/mailcore2"<mailcore2@noreply.github.com>; 抄送: "Comment"<comment@noreply.github.com>;"Alrict"<353296717@qq.com>; 主题: Re: [MailCore/mailcore2] 邮件正文乱码问题 (#1778)

有解决这个问题嘛

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

wuhanzhouguanjie commented 4 years ago

我这边邮件头的Date也没有正确显示。但是IMAPMessage..header().date() 取出来是有时间的。感觉Android上还是有挺多问题的。

gnmmdk commented 1 year ago

同样的问题