PyDocs

Nav

Internet Data Handling

collapse_rfc2231_value

email.utils

function (source)
  • collapse_rfc2231_value(value, errors='replace', fallback_charset='us-ascii')
When a header parameter is encoded in RFC 2231 format, Message.get_param() may return a 3-tuple containing the character set, language, and value. collapse_rfc2231_value() turns this into a string. Optional errors is passed to the errors argument of str’s encode() method; it defaults to 'replace'. Optional fallback_charset specifies the character set to use if the one in the RFC 2231 header is not known by Python; it defaults to 'us-ascii'.
0 Examples
No examples for email.utils/collapse_rfc2231_value.
See Also
No see-alsos for email.utils/collapse_rfc2231_value
0 Notes
No notes for collapse_rfc2231_value