Internet Direct (Indy)
Home
PreviousUpNext
TIdMessage.ExtractCharSet Method

Captures and removes a character set parameter present in a RFC 2822-compliant message header.

Pascal
function ExtractCharSet(
    AContentType: string
): string;
Parameters 
Description 
AContentType 
Message header to be examined for the optional character set parameter. 

String - Value for the character set parameter, or any empty string.

ExtractCharSet is a String function used to capture and remove a character set parameter present in RFC 2822-compliant message headers. 

AContentType is the RFC 2822 message header to be examined for the optional character set parameter. 

The return value for the method is the content for the character set parameter, or any empty string when the message header does not contain the "CHARSET=" argument. 

ExtractCharSet is used when processing message headers during receipt of a message in ProcessHeaders to generate the value for the CharSet property.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.