Problem with UTF-8 encoding in subject

Giganews Newsgroups
Subject: Problem with UTF-8 encoding in subject
Posted by:  Master Surfer (mastersurfer…@web.de)
Date: Sun, 02 Jul 2006

Hello,

I use Indy 10 to receive messages via smtp.
i got the following message:

-snip-
Message-ID: <27349192.1151573980203.JavaMail.SYSTEM@wweb1>
Date: Thu, 29 Jun 2006 11:39:40 +0200 (CEST)
From: …@--.de
To: …@--.de
Subject: =?UTF-8?Q?Jubil=C3=A4um_Kommunale_Datenverarbeitun?=
  =?UTF-8?Q?gszentrale_(PM_216/06_vom_29.06.06)?=
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-snip-

the subject isn't decoded when loading this message in a Tidmessage.

At the moment I only read the subject property after I called
LoadFromFile or LoadFromStream (the stream comes from the IdSmtpServer).

what must I do, that the subject is decodes correctly?

Thanks.

Mastersurfer

Replies