Indy 9
InitializeISO
Unit: IdCoderHeader
Sets header coder values based on the system locale.
procedure InitializeISO(var TransferHeader: TTransfer; var HeaderEncoding: char; var CharSet: string);
Unit
IdCoderHeader
Parameters
var TransferHeader: TTransfer
Content transfer encoding for the computer system.
var HeaderEncoding: char
Header encoding for the computer system.
var CharSet: string
CHaracter set for the computer system.
Description
InitializeISO is a procedure that initializes the default values used for the content transfer encoding, header encoding, and characters set for use in headers for RFC-compliant messages. InitializeISO stores values in the variable arguments TransferHeader, HeaderEncoding, and CharSet. The default values are:

  • TransferHeader - bit8

  • HeaderEncoding - 'B'

InitializeISO calls GetSystemLocale to determine the default character set for the local computer system, and can contain the following values:

  • 'GB2312'

  • 'Big5'

  • 'EUC-KR'

  • 'ISO-2022-JP' (Sets HeaderEncoding to iso2022jp)

  • 'ISO-8859-1' (Sets HeaderEncoding to 'Q')

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