as i understood, the problem might be a "too smart" debugger. in d2007 i converted the subject and content to utf8 and in the msg.header.charsetcode i placed UTF8 and it worked.
the same, in D2009 results in gibberish or <nothing> instead of the non english characters. when viewing the result in the debugger it seems to had no conversion at all while it only means that the debugger of D2009 got "smarter" and is doing the conversion automatically. has someone here tried sending UTF8 emails with D2009 and care to share his/her conclusions? thanks Original Message: ----------------- From: Kazantsev Alexey [email protected] Date: Mon, 29 Dec 2008 03:25:23 +0400 To: [email protected] Subject: Re: [Synalist] ut8 and D2009 On Mon, 29 Dec 2008 01:33:10 +0400, <""amos"<amos"@emailaya.com>> wrote: > when doing the same in D2009, the result is the same as the string > itself as if no conversion was done. Use BytesOf() or see help for "automatic string conversion" (or like this). If short, Delphi 2009 has information of string code page and uses her for conversion to unicode when required. Example: Var rbs : RawByteString; Begin rbs := Utf8Encode(<your string>); // rbs contains bytes of UTF8, and code page is UTF8 SetCodePage(rbs, 0, False); // rbs contains bytes of UTF8, but code page is 0 (raw) End; -- Kazantsev Alexey ---------------------------------------------------------------------------- -- _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public -------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange ------------------------------------------------------------------------------ _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
