hi there

attached headers of an email. decoding the headers results with a loss of the 
last character of the subject. debugging this issue
shows the following:

mimemess.pas: function TMessHeader.DecodeHeader(value: string): boolean; -> 
FSubject := InlineDecode(Trim
(SeparateRight(Value, ':')), cp); the sent value is correct.

from there it goes to mimeinln.pas: function InlineDecode(const Value: string; 
CP: TMimeChar): string; -> s :=
CharsetConversion(s, ichar, CP); here, s variable contains the correct value in 
hebrew as it should! here it calls for a conversion
from cp1255 to utf8 as it suppose to do.

function CharsetConversionTrans(Value: AnsiString; CharFrom: TMimeChar; CharTo: 
TMimeChar; const TransformTable:
array of Word; Translit: Boolean): AnsiString;
the result of the above is a utf8 representation of the subject which is shown 
using tntcomponent. but it shows the subject ok
but the last character is missing. same happens with the name of the sender if 
its in hebrew. this
doesnt happen every time but i cant understand what causes this. i hope the 
attached and the explanation is enough for
someone here to understand what is the problem

thanks

-- 

Attachment: subject.txt
Description: Attached file: subject.txt

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to