Name

encode

Synopsis

encode(s,charset='iso-8859-1',encoding='q')

Encodes string s (which must use the given charset) as per the rules in RFC 2047. encoding must be 'q' to specify Quoted Printable, or 'b' to specify Base 64.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.