Hi there,
  I am loading an email into MIMEMess 

 var
    mime :TMIMEMess;
 begin
    ...
    mime.Lines.SetText(...);
    mime.DecodeMessage;
    ....
    mime.EncodeMessage;
end;

before EncodeMessage, the charset of the subject is BIG5 or GB2312;
however, after that, the charset became ISO-2022-JP. I trace the code
back and find that in FHeader.EncodeHeaders at the following line

if FSubject <> '' then
    Value.Insert(0, 'Subject: ' + InlineCodeEx(FSubject, FCharsetCode));

InlineCodeEx will force to change the charsetcode to IdealCharsetCoding
no matter what FCharsetCode is inputted. Why is that? Now, the coding of
the subject is not shown properly. How can I fix this problem?

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to