BUGFIX Setting mbstring defaults in cli-script.php (same as main.php), and default mb_regex_encoding() to UTF-8 as well (in both files)

This commit is contained in:
Ingo Schommer 2011-08-26 17:57:43 +02:00
parent da0ac49d5f
commit 823cae3f32
2 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,12 @@ if(isset($_SERVER['argv'][1])) {
*/
require_once("core/Core.php");
if(function_exists('mb_http_output')) {
mb_http_output('UTF-8');
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
}
global $databaseConfig;
// We don't have a session in cli-script, but this prevents errors

View File

@ -63,6 +63,7 @@ require_once("core/Core.php");
if (function_exists('mb_http_output')) {
mb_http_output('UTF-8');
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
}
Session::start();