42 public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0, $charset =
'utf-8')
44 if (strtolower($charset) ===
'iso-2022-jp') {
45 $old = mb_internal_encoding();
46 mb_internal_encoding(
'utf-8');
47 $newstring = mb_encode_mimeheader($string, $charset, $this->
getName(),
"\r\n");
48 mb_internal_encoding($old);
53 return parent::encodeString($string, $firstLineOffset, $maxLineLength);