- set mbstring's internal encoding in proper place

release-0.6
alecpl 16 years ago
parent 70087c52bc
commit d99b9356c3

@ -62,6 +62,11 @@ if (!ini_get('safe_mode')) {
set_time_limit(120);
}
// set internal encoding for mbstring extension
if(extension_loaded('mbstring'))
mb_internal_encoding(RCMAIL_CHARSET);
/**
* Use PHP5 autoload for dynamic class loading
*

@ -207,12 +207,10 @@ function rcube_charset_convert($str, $from, $to=NULL)
}
}
// settings for mbstring module (by Tadashi Jokagi)
if (is_null($mbstring_loaded)) {
if ($mbstring_loaded = extension_loaded("mbstring"))
mb_internal_encoding(RCMAIL_CHARSET);
}
if (is_null($mbstring_loaded))
$mbstring_loaded = extension_loaded('mbstring');
// convert charset using mbstring module
if ($mbstring_loaded)
{

Loading…
Cancel
Save