use shorter names for x-euc-tw, x-windows-949 and Outlook Express Korean charsets.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 31 Oct 2005 17:29:03 +0000 (17:29 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 31 Oct 2005 17:29:03 +0000 (17:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10208 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index 4b75de8b61fc31fef5548d28b0eb37e690dee1fd..9f01614429a56f7f0c29293b54de4adab0d78d45 100644 (file)
@@ -261,6 +261,13 @@ function fixcharset($charset) {
      */
     $charset=preg_replace("/[-:.\/\\\]/",'_',$charset);
 
+    // OE ks_c_5601_1987 > cp949 
+    $charset=str_replace('ks_c_5601_1987','cp949',$charset);
+    // Moz x-euc-tw > euc-tw
+    $charset=str_replace('x_euc','euc',$charset);
+    // Moz x-windows-949 > cp949
+    $charset=str_replace('x_windows_','cp',$charset);
+
     // windows-125x and cp125x charsets
     $charset=str_replace('windows_','cp',$charset);