read(8192)) { $string .= $bytes; } $is->write($this->encodeString($string)); } /** * Get the MIME name of this content encoding scheme. * * @return string */ public function getName() { return 'quoted-printable'; } /** * Encode a given string to produce an encoded string. * * @param string $string * @param integer $firstLineOffset if first line needs to be shorter * @param integer $maxLineLength 0 indicates the default length for this encoding * * @return string */ public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0) { return quoted_printable_encode($string); } }