Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Sending a SMTP message with UTF-8 subject
| Subject: | Re: Sending a SMTP message with UTF-8 subject |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 26 Nov 2007 10:14:03 |
"Richard" <ritchie872@yahoo.com> wrote in message
news:47489417@newsgroups.borland.com...
> OK, investigating further, it seems like the encoding to UTF-8
> is done by idMessage itself. is that right?
No.
> If so, how am I suposed to pass a WideString (with cyrillic AND
> chinese chars, for example) to the subject?
Under Win32, you can't. String properties are Ansi, as thus cannot accept
Wide strings directly without loss of data. Thus the need to use
UTF8Encode() manually. Under .NET, Strings are natively Unicode, so
WideString is already supported by Indy. Unicode support under Win32 will
not be available until next year when CodeGear releases the next IDE
version.
Gambit
none