hi
after some more test with unicode i have the following results:
since addPartText requires TStringList, i cant use TTntStringList
so for text i did the following:
tmpText.Text := WideStringToStringEx(mBody.Lines.Text,CP_UTF8);
Msg2.AddPartText(tmpHTML,MimePart);
also i had to make
CharsetCode := UTF_8;
TargetCharset := UTF_8;
in for the text part in order for it to work
otherwise charsetcode was iso_8859_1 and targetcharsetcode was cp1255 (as my
locale)
the above is working perfect!
the problem is with html part
the above doesnt work and instead of unicode
i get the WideStringToStringEx result in the html itself (garbage)
and since AddPartHTML requires TStringList
again i cant use TTntStringList
so when i do:
tmpHTML.Text := tmp; (tmp is widestring)
Msg2.AddPartHTML(tmpHTML, MimePart);
all unicode characters become "?" (that's the result when assigning widestring
into string)
please advice
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public