hi
what am i missing?
i have a mail with attachment which name is in hebrew
so the header of the part contains
Content-Disposition: attachment; FileName="=?UTF-8?Q?=F0=E9=F1=E5=E9.xls?="

i have this code:
    Msg.Lines.Text := Mail;
    Msg.DecodeMessage;

inside the last line, the procedure procedure TMIMEPart.DecodePartHeader;
is called in order to decode the lines into a valid TMimeMess object.
everything is ok until it reaches this line:
  FFileName := InlineDecode(FFileName, FTargetCharset);
FTargetCharset value is cp1255 bcoz of GetCurCP;
this causes an invalid filename, but if FTargetCharset was utf8
the filename would be ok. when exactly can i force the
FTargetCharset to be utf8?

calling Msg.DecodeMessage; does all the job automatically

please advice, what am i missing?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to