Topic Path: Symbol Reference > Classes > TIdMessage Class > TIdMessage Methods > ExtractCharSet Method
ContentsIndexHome
PreviousUpNext
TIdMessage.ExtractCharSet Method

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.