>> 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?
>See what InlineCodeEx doing. It doing charset conversion from >FCharsetCode to ideal charset used for encoding into message headers. >Function IdealCharsetCoding searching best target encoding, what have >best match from given set of charsets. This set can be modified by >IdealCharsets variable. >Note: for proper work of EastAsian encoding you must have iconv.dll! >-- >Lukas Gebauer. >E-mail: [EMAIL PROTECTED] >WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP >Library That's my problem. I saw the source code of the InlineCodeEx and find c := IdealCharsetCoding(Value, FromCP, IdealCharsets); I still don't understand why it's necessary to change from the orginal charsetcode to the ideal charset code! In my case, the charset code of the source of email, which being loaded into mimemess, is known. Why can I simply set c := FromCP instead? ------------------------------------------------------------------------- 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
