Indy 9
EncodeHeader
Unit: IdCoderHeader
Encodes a message header that contains non-US-ASCII characters.
function EncodeHeader(const Header: string; specials: CSET; const HeaderEncoding: Char; TransferHeader: TTransfer; MimeCharSet: string): string;
Unit
IdCoderHeader
Parameters
const Header: string
Message header to be encoded.

specials = Special charcters that require quoting.

const HeaderEncoding: Char
Content encoding for the message header.
TransferHeader: TTransfer
Transfer encoding for the message header.
MimeCharSet: string
MIME character set for the message header.
Return Value
String - Value of the encoded message header.
Description
EncodeHeader is a String function that encodes a message header containing non-US-ASCII characters using the content encoding, transfer encoding, and character set specified in the input parameters.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.