PyDocs

Nav

Internet Data Handling

Charset.body_encode

  • Charset.body_encode(string)
Body-encode a string by converting it first to bytes.

The type of encoding (base64 or quoted-printable) will be based on
self.body_encoding.  If body_encoding is None, we assume the
output charset is a 7bit encoding, so re-encoding the decoded
string using the ascii codec produces the correct string version
of the content.
0 Examples
No examples for email.charset/Charset.body_encode.
See Also
No see-alsos for email.charset/Charset.body_encode
0 Notes
No notes for Charset.body_encode