test if mb_internal_encoding() is available in functions.php head

This commit is contained in:
Andrew Dolgov 2016-07-07 10:02:55 +03:00
parent eb95d1bddf
commit e6905f7f87

View file

@ -16,7 +16,9 @@
libxml_disable_entity_loader(true);
mb_internal_encoding("UTF-8");
// separate test because this is included before sanity checks
if (function_exists("mb_internal_encoding")) mb_internal_encoding("UTF-8");
date_default_timezone_set('UTC');
if (defined('E_DEPRECATED')) {
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);