Browse files

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)
  • Loading branch information...
1 parent da0ac49 commit 823cae3f32229f47ab0478531573e4bf15d61813 @chillu chillu committed Aug 26, 2011
Showing with 7 additions and 0 deletions.
  1. +6 −0 cli-script.php
  2. +1 −0 main.php
View
6 cli-script.php
@@ -61,6 +61,12 @@
*/
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
1 main.php
@@ -63,6 +63,7 @@
if (function_exists('mb_http_output')) {
mb_http_output('UTF-8');
mb_internal_encoding('UTF-8');
+ mb_regex_encoding('UTF-8');
}
Session::start();

0 comments on commit 823cae3

Please sign in to comment.