此邮件应如下所示
Subject: asd asd asd åäö åäö åäö
Content: asd asd asd åäö åäö åäö
但是在雷鸟上,它看起来像这样
Subject: asd asd asd åäö åäö åäö
Content: asd asd asd <weird question mark characters>
这是Thunderbird中查看的来源,它有什么问题吗?
Return-Path: <example@example.com>
X-Original-To: example@example.com
Delivered-To: example@example.com
Received: from example.com (example.com [130.237.161.15])
by example.com (Postfix) with ESMTP id 68270C0A20
for <example@example.com>; Fri, 11 Apr 2014 04:35:10 +0200 (CEST)
From: Example <example@example.com>
Message-ID: <118563174.68.1397183710419.JavaMail.tomcat7@thesis>
Subject: =?UTF-8?Q?Forum_post:_asd_a?=
=?UTF-8?Q?sd_asd_=C3=A5=C3=A4=C3=B6_=C3=A5=C3=A4=C3=B6_=C3=A5=C3=A4=C3=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
asd asd asd =E5=E4=F6 =E5=E4=F6 =E5=E4=F6
答案 0 :(得分:1)
您的内容类型表示UTF-8,但是主体实际上是iso8859-1或类似的编码(例如,iso8859-15非常相似)。那些字节序列根本不是有效的UTF-8。
简单的解决方法是将charset =更改为实际正确值,如果您知道,或者可以放心地猜测它。如果你不能,也许你根本就不应该生成这个消息。