From 5e7de754ff383bb1391244b1f5492ca89dde30a2 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 31 Aug 2014 14:01:03 +0200 Subject: [PATCH] Using mb_internal_encoding() in the h() function --- src/basics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basics.php b/src/basics.php index 5657126b67b..47a83c69804 100644 --- a/src/basics.php +++ b/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'; }