PyDocs

Nav

Internet Data Handling

Charset.header_encode

  • Charset.header_encode(string)
Header-encode a string by converting it first to bytes.

The type of encoding (base64 or quoted-printable) will be based on
this charset's `header_encoding`.

:param string: A unicode string for the header.  It must be possible
    to encode this string to bytes using the character set's
    output codec.
:return: The encoded string, with RFC 2047 chrome.
0 Examples
No examples for email.charset/Charset.header_encode.
See Also
No see-alsos for email.charset/Charset.header_encode
0 Notes
No notes for Charset.header_encode