summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Utf8.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/core/Utf8.php b/system/core/Utf8.php
index 21bac6078..0be42adb4 100644
--- a/system/core/Utf8.php
+++ b/system/core/Utf8.php
@@ -64,8 +64,13 @@ class CI_Utf8 {
// set internal encoding for multibyte string functions if necessary
if (extension_loaded('mbstring'))
{
+ define('MB_ENABLED', TRUE)
mb_internal_encoding('UTF-8');
}
+ else
+ {
+ define('MB_ENABLED', FALSE);
+ }
}
else
{