From dd5376c41f942cf4b8d957052eae5debbbecfaef Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 2 Apr 2009 08:15:50 +0000 Subject: [PATCH] making the charset param optional, with preset to utf-8 in decodeMailHandler --- phpgwapi/inc/class.translation.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index c34a293c36..35458f5d5b 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -863,9 +863,9 @@ class translation * @param string $displayCharset the charset parameter specifies the character set to represent the result by (if iconv_mime_decode is to be used) * @return string */ - function decodeMailHeader($_string, $displayCharset) + function decodeMailHeader($_string, $displayCharset='utf-8') { - //error_log(__FILE__.','.__METHOD__.':'."called"); + error_log(__FILE__.','.__METHOD__.':'."called with $_string and CHARSET $displayCharset"); if(function_exists(imap_mime_header_decode)) { $newString = '';