making the charset param optional, with preset to utf-8 in decodeMailHandler

This commit is contained in:
Klaus Leithoff 2009-04-02 08:15:50 +00:00
parent 1fa08b5095
commit dd5376c41f

View File

@ -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) * @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 * @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)) { if(function_exists(imap_mime_header_decode)) {
$newString = ''; $newString = '';