ksjdasd - 2009-08-18 12:29:02
The _encode_header() function needs to be as follows:
*/
function _encodeHeader($input, $charset = 'ISO-8859-15')
{
$m = preg_match_all('/(\w*[\x80-\xFF]+\w*)/', $input, $matches);
if ($m) $input=mb_encode_mimeheader($input,$charset, 'Q');
return $input;
}
otherwise, it removes wanted whitespace when there are Umlauts (äöüß) in the subject line