utilsHeaderEncodePhrase

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

string
utilsHeaderEncodePhrase

Parameters

options gmime.format_options.FormatOptions

a #GMimeFormatOptions or null

phrase string

phrase to encode

charset string

the charset to use or null to use the default

Return Value

Type: string

the encoded 'phrase'. Useful for encoding internet addresses.