summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_mail.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class
index 6c4398f..503da08 100644
--- a/it_mail.class
+++ b/it_mail.class
@@ -308,7 +308,9 @@ function header_escape($string)
? ltrim(
($encoded = @iconv_mime_encode('', $string, array('scheme' => 'Q', 'input-charset' => $this->charset, 'output-charset' => $this->charset))) !== false
? $encoded
- : iconv_mime_encode('', $string, array('scheme' => 'B', 'input-charset' => $this->charset, 'output-charset' => $this->charset)),
+ : ($encoded = @iconv_mime_encode('', $string, array('scheme' => 'B', 'input-charset' => $this->charset, 'output-charset' => $this->charset))) !== false
+ ? $encoded
+ : iconv_mime_encode('', $string, array('scheme', 'B', 'input-charset' => 'ISO-8859-1', 'output-charset' => $this->charset)),
' :'
)
: $string;