My mb_internal_encoding();
output remains ISO-8859-1 even when UTF-8 is set multiple times. This makes no sense.
In CakePHP 3.x I got this:
'App' => [
'namespace' => 'App',
'encoding' => 'utf-8',
'base' => false,
'dir' => 'src',
'webroot' => 'webroot',
'wwwRoot' => WWW_ROOT,
// 'baseUrl' => env('SCRIPT_NAME'),
'fullBaseUrl' => false,
'imageBaseUrl' => 'img/',
'cssBaseUrl' => 'css/',
'jsBaseUrl' => 'js/',
'paths' => [
'plugins' => [ROOT . DS . 'plugins' . DS],
'templates' => [APP . 'Template' . DS],
'locales' => [APP . 'Locale' . DS],
],
],
On my server (Debian Wheezy) the apache2.conf file says:
AddDefaultCharset utf-8
My html file has this meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Even when I place this in bootstrap
header('Content-Type: text/html; charset=utf-8');
My mb_internal_encoding();
output remains ISO-8859-1
What can I do more to make the output UTF-8?