Skip to content

Commit

Permalink
Using mb_internal_encoding() in the h() function
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Aug 31, 2014
1 parent 1f0b311 commit 5e7de75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basics.php
Expand Up @@ -156,7 +156,7 @@ function h($text, $double = true, $charset = null) {

static $defaultCharset = false;
if ($defaultCharset === false) {
$defaultCharset = Configure::read('App.encoding');
$defaultCharset = mb_internal_encoding();
if ($defaultCharset === null) {
$defaultCharset = 'UTF-8';
}
Expand Down

0 comments on commit 5e7de75

Please sign in to comment.