The quoted_printable_encode() function converts an 8-bit string to a quoted-printable string.
Data encoded in quoted-printable are unlikely to be modified by mail transport. A text which is entirely US-ASCII may be encoded in quoted-printable to ensure the integrity of the data should the message pass through a character-translating, or line-wrapping gateway.
string quoted_printable_encode ( string $str )
Returns a quoted printable string created according to ยป RFC2045, section 6.7.
This function is similar to imap_8bit(), except this one does not require the IMAP module to work.
Parameter | Description |
---|---|
str | Required. Specifies the 8-bit string to be converted |
Returns the encoded string.