mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
da0ac49d5f
commit
823cae3f32
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user