[ci skip] Micro-optimization
diff --git a/system/core/Utf8.php b/system/core/Utf8.php
index 98352db..c789a7b 100644
--- a/system/core/Utf8.php
+++ b/system/core/Utf8.php
@@ -51,7 +51,7 @@
if (
defined('PREG_BAD_UTF8_ERROR') // PCRE must support UTF-8
&& (ICONV_ENABLED === TRUE OR MB_ENABLED === TRUE) // iconv or mbstring must be installed
- && strnatcasecmp(config_item('charset'), 'UTF-8') === 0 // Application charset must be UTF-8
+ && strtoupper(config_item('charset')) === 'UTF-8' // Application charset must be UTF-8
)
{
define('UTF8_ENABLED', TRUE);