# MIME::QuotedPrint
📦 std
Quoted-printable encoding and decoding as specified by RFC 2045. Quoted-printable is the encoding of choice for mail bodies that are *mostly* ASCII with the occasional non-ASCII byte — long passages of plain text stay readable, and only the unsafe bytes turn into `=XX` hex triplets. For content that is truly binary, prefer base64 via `MIME::Base64`. The encoder keeps lines at most 76 characters long by inserting soft line breaks (`=` at end of line, then the `$eol` sequence). Pass a `$binmode` flag when you want `\n` itself to be encoded — useful when the decoded output must be byte-for-byte identical regardless of the receiver’s line-ending conventions. An `$eol` of `""` disables both soft breaks and `\n` rewriting. The decoder always produces `\n`-terminated output, even when the input used `\r\n` line endings. ## Functions ### Other Functions #### [`encode_qp`](QuotedPrint/encode_qp.md) Encode a string as quoted-printable. #### [`decode_qp`](QuotedPrint/decode_qp.md) Decode a quoted-printable string back to plain bytes.