utilsHeaderEncodeText

Encodes a 'text' header according to the rules in rfc2047.

string
utilsHeaderEncodeText

Parameters

options gmime.format_options.FormatOptions

a #GMimeFormatOptions or null

text string

text to encode

charset string

the charset to use or null to use the default

Return Value

Type: string

the encoded header. Useful for encoding headers like "Subject".