added strtolower into charset and lang test
diff --git a/system/libraries/User_agent.php b/system/libraries/User_agent.php
index 67a3c2b..f80bb0b 100644
--- a/system/libraries/User_agent.php
+++ b/system/libraries/User_agent.php
@@ -256,7 +256,7 @@
 	{

 		if ((count($this->languages) == 0) AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) AND $_SERVER['HTTP_ACCEPT_LANGUAGE'] != '')

 		{

-			$languages = preg_replace('/(;q=.+)/i', '', trim($_SERVER['HTTP_ACCEPT_LANGUAGE']));

+			$languages = preg_replace('/(;q=.+)/i', '', strtolower(trim($_SERVER['HTTP_ACCEPT_LANGUAGE'])));

 			

 			$this->languages = explode(',', $languages);

 		}

@@ -279,7 +279,7 @@
 	{	

 		if ((count($this->charsets) == 0) AND isset($_SERVER['HTTP_ACCEPT_CHARSET']) AND $_SERVER['HTTP_ACCEPT_CHARSET'] != '')

 		{

-			$charsets = preg_replace('/(;q=.+)/i', '', trim($_SERVER['HTTP_ACCEPT_CHARSET']));

+			$charsets = preg_replace('/(;q=.+)/i', '', strtolower(trim($_SERVER['HTTP_ACCEPT_CHARSET'])));

 			

 			$this->charsets = explode(',', $charsets);

 		}