Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Sending a SMTP message with UTF-8 subject

www.cryer.info
Managed Newsgroup Archive

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 16:26:48

"Richard" <ritchie872@yahoo.com> wrote in message
news:474b62a6$1@newsgroups.borland.com...

> the only was to do what I want is, unfortunatly, setting NoEncode to
> true and doing the whole work by myself, including the attachment
> encodings, as far as I know....

Text encoding is only supported in the headers, not in the body.  You are
responsible for the body content.

As for the headers - when you assign a WideString to an AnsiString, it is
converted to Ansi or MBCS by the RTL, depending on your system
configuration.  Indy will convert that back to WideString when performing
the actual UTF-8 encoding, or theoritically nothing should get lost.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive