Internet Direct (Indy) Version 9.0.1 Beta
DecodeHeader
Decodes header name and values using the charset for the encoding.

function DecodeHeader(Header: string): string;
Parameters
Header: string
Raw header values to be decoded.

Returns
String - Decoded language specific value.

Description
DecodeHeader is a String function used to extract names and values from quoted-printable or base-64 encoded headers. DecodeHeader will examine the encoded header for the charset used for the content, and perform the corresponding language decoding.