Skip to content

Commit

Permalink
Moving multibyte encoding setting to bootstrap.php. Closes #3290
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Oct 23, 2012
1 parent 746eaf9 commit 922d986
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/Cake/I18n/I18n.php
Expand Up @@ -24,13 +24,6 @@
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.
*
Expand Down
6 changes: 6 additions & 0 deletions lib/Cake/bootstrap.php
Expand Up @@ -145,6 +145,12 @@

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
Expand Down

0 comments on commit 922d986

Please sign in to comment.