使用 chilkat 在电子邮件主题中添加额外空格
我们使用 Visual C++ 8.0 的 Chilkat 邮件。我们在解码某些电子邮件的主题中的额外空格时遇到问题。这些电子邮件中的主题很少有编码词,例如(下面两个):
=?utf-8?Q?Some text in he?= =?utf-8?Q?re?=
根据 RFC2047,该主题应类似于“此处的某些文本”,但 chilkat 将其解码为“此处的某些文本”。在解码的主题中可以看到编码单词之间应该忽略的两个空格。
如果有人知道如何解决这个问题,我将不胜感激。
We're using Chilkat mail for Visual C++ 8.0. We have a problem with decoding extra spaces in subject for some e-mails. The subject in these e-mails has got few encoded words like (two below):
=?utf-8?Q?Some text in he?= =?utf-8?Q?re?=
According to RFC2047 this subject should look like "Some text in here", but chilkat decoding it as "Some text in he re". Two spaces which should be ignored between encoded words are visible in decoded subject.
If anyone knows how to solve this issue, I'll be grateful for some solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们通过在将收到的电子邮件存储到我们的数据库之前删除其
?=
和=?
标记之间的多余空格来解决该问题。We solved the problem by removing extra spaces between
?=
and=?
tags in received e-mails before they're stored in our database.