Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Aug : Indy incorrectly parsing name & e-mail address when containing norwegian charact

www.cryer.info
Managed Newsgroup Archive

Indy incorrectly parsing name & e-mail address when containing norwegian charact

Subject:Indy incorrectly parsing name & e-mail address when containing norwegian charact
Posted by:"Tom Reiertsen" (t..@reiertsen.com)
Date:Tue, 14 Aug 2007 14:51:04

Hi,

I'm reposting this here from .non-tech.

I'm experiencing a problem with Indy not correctly parsing an e-mail name &
address correctly if the name contains Norwegian characters 'æ', 'ø', 'å',
'Æ', 'Ø', 'Å'.

The From header of the problematic e-mails look like this (edited to conceal
real E-Mail address):

From: =?ISO-8859-1?Q?N=E6ss?= <Næss>, "Hilde" <Hilde.Naess@domain.com>

Indy parses this incorrectly into the following:

IdMailMessage.From.Name = ''
IdMailMessage.From.Address = 'Næss'

Further headers for additional information:

MIME-Version: 1.0
Content-Type: multipart/related;
boundary="L=_mQjmiasHtyGlnBJ9La8xy8HO5TLByRH"
X-Mailer: Microsoft Office Outlook 12.0
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-Language: no
X-OlkEid: C4040620E279428AA90D374EB734CAE4BBF511FF

Any help would be greatly appreciated.

Best Regards,

Tom Reiertsen

Replies:

www.cryer.info
Managed Newsgroup Archive