Skip to main content

Name

qp_encode — quoted-printable encode a string

Synopsis

qp_encode { string } [ charset ]

Description

Quoted-printable encode all the encodable characters in a string and return the result. A character encoding may be specified as an optional second argument.

$encoded = qp_encode "Postal Engine ®";
  $encoded2 = qp_encode "Postal Engine ®" "ISO-8859-1";
  ec_log "encoded: ${encoded}";
  ec_log "encoded2: ${encoded2}";
Was this page helpful?