On this page
binascii.b2a_qp
Prev: binascii.b2a_hex | Up: binascii | Next: binascii.b2a_uu
Rel: binascii.a2b_base64, binascii.a2b_hex, binascii.a2b_qp, binascii.a2b_uu
Ref: docs.python.org — binascii.b2a_qp
Tags: #public #python3 #stdlib #binascii
Import
import binascii
from binascii import b2a_qp
Signature & Overview
binascii.b2a_qp(data, quotetabs=False, istext=True, header=False)
Encode a string using quoted-printable encoding.
Usage
import binascii
assert binascii.b2a_qp("Café".encode("utf-8")) == b"Caf=C3=A9"
Gotchas
- Low-level Quoted-Printable encoder backing quopri.
REPL Inspect
from binascii import b2a_qp
help(b2a_qp)
Linked from
Related notes
- tuts/python3/stdlib_module/binascii/b2a_hex Linked here; links to this page; shared tags: #binascii, #stdlib
- tuts/python3/stdlib_module/binascii/b2a_uu Linked here; links to this page; shared tags: #binascii, #stdlib
- tuts/python3/stdlib_module/binascii Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/binascii/a2b_base64 Linked here; shared tags: #binascii, #stdlib
- tuts/python3/stdlib_module/binascii/a2b_hex Linked here; shared tags: #binascii, #stdlib
- tuts/python3/stdlib_module/binascii/a2b_qp Linked here; shared tags: #binascii, #stdlib
- tuts/python3/stdlib_module/binascii/a2b_uu Linked here; shared tags: #binascii, #stdlib
- tuts/python3/stdlib_module/quopri Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/binascii/b2a_base64 shared tags: #binascii, #stdlib
- tuts/python3/stdlib_module/binascii/crc32 shared tags: #binascii, #stdlib