Name

encodestring

Synopsis

encodestring(s,spaces=False,header=False)

Encodes string s, which contains arbitrary bytes, and returns a string with QP-encoded ASCII text. When spaces is true, encodestring also encodes spaces and tabs. When header is true, encodestring encodes spaces as _ (underscores).

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.