Browse Source

Moving multibyte encoding setting to bootstrap.php. Closes #3290

ADmad 13 years ago
parent
commit
922d9865fa
2 changed files with 6 additions and 7 deletions
  1. 0 7
      lib/Cake/I18n/I18n.php
  2. 6 0
      lib/Cake/bootstrap.php

+ 0 - 7
lib/Cake/I18n/I18n.php

@@ -24,13 +24,6 @@ App::uses('CakePlugin', 'Core');
 App::uses('L10n', 'I18n');
 App::uses('Multibyte', 'I18n');
 
-if (function_exists('mb_internal_encoding')) {
-	$encoding = Configure::read('App.encoding');
-	if (!empty($encoding)) {
-		mb_internal_encoding($encoding);
-	}
-}
-
 /**
  * I18n handles translation of Text and time format strings.
  *

+ 6 - 0
lib/Cake/bootstrap.php

@@ -145,6 +145,12 @@ App::$bootstrapping = true;
 
 Configure::bootstrap(isset($boot) ? $boot : true);
 
+if (function_exists('mb_internal_encoding')) {
+	$encoding = Configure::read('App.encoding');
+	if (!empty($encoding)) {
+		mb_internal_encoding($encoding);
+	}
+}
 
 /**
  *  Full url prefix