problems with char conversion during receiving a mail

Giganews Newsgroups
Subject: problems with char conversion during receiving a mail
Posted by:  Bj√∂rn Gundermann (spam@gundermann-software.de)
Date: Thu, 16 Apr 2009

Hi,

I am using Indy 10 snapshot r3555 from 2009-03-26 with D7

If I receive a plain text mail:
Example
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
charset="iso-8859-1";
reply-type=original
Content-Transfer-Encoding: 8bit

üöä
END

then the three german special chars of the body are converted wrong.
Problem occurs in TIdTextEncoding.Convert
Call of ADestination.GetBytes is done with ABytes = (252, 246, 228, 13, 10)
<- correct
After conversation the values are (124, 118, 100).
Bit7 is always missing and so I get
|vd
instead of
üöä

Bug?  Feature? How can I solve the problem?

Björn

Replies