diff --git a/mimeDecode.php b/mimeDecode.php index db84456..a4c3d92 100755 --- a/mimeDecode.php +++ b/mimeDecode.php @@ -758,7 +758,8 @@ function _decodeHeader($input, $default_charset=false) break; } if (is_string($this->_decode_headers)) { - $text = @iconv($charset, $this->_decode_headers, $text); + $conv = @iconv($charset, $this->_decode_headers, $text); + $text = ($conv === false) ? $text : $conv; } $input = str_replace($encoded, $text, $input); }