Internet Direct (Indy)
Home
PreviousUpNext
TIdMessage.InitializeISO Method

Initializes the default values for the content transfer encoding, encoding, and character sets for the message.

Pascal
procedure InitializeISO(
    var VTransferHeader: TTransfer; 
    var VHeaderEncoding: Char; 
    var VCharSet: String
);
Parameters 
Description 
VTransferHeader 
Content transfer encoding for header values.
 
VHeaderEncoding 
Encoding for header values.
 
VCharSet 
Character set for the messsage. 

InitializeISO is a procedure used to initialize the default values for the content transfer encoding, encoding, and character sets for the message. 

VTransferHeader is assigned the value bit8. 

VHeaderEncoding is assigned the value 'B' for base64 encoding. 

VCharSet is assigned the IdCharsetNames value for the client's default character set as indicated in IdGetDefaultCharSet

When the default character set contains the folowing value, the associated action is performed: 

 

Character Set 
Action 
idcsISO_2022_JP 
VTransferHeader is set to iso2022jp 
idcsISO_8859_1 
VHeaderEncoding is set 'Q' quoted-printable enconding. 
idcsUNICODE_1_1 
VCharSet is set to the IdCharsetNames value for idcsUTF_8. 

 

InitializeISO trigger the OnInitializeISO event handler using the values for the method parameters.

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.