utilsHeaderEncodePhrase

fnstring utilsHeaderEncodePhrase(gmime.format_options.FormatOptions options, string phrase, string charset = null)

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

Parameters

optionsa #GMimeFormatOptions or null
phrasephrase to encode
charsetthe charset to use or null to use the default

Returns

the encoded 'phrase'. Useful for encoding internet

addresses.