Skip to content
Permalink
Browse files

Using mb_internal_encoding() in the h() function

  • Loading branch information...
lorenzo committed Aug 31, 2014
1 parent 1f0b311 commit 5e7de754ff383bb1391244b1f5492ca89dde30a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/basics.php
@@ -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';
}

0 comments on commit 5e7de75

Please sign in to comment.
You can’t perform that action at this time.