From c5c521a968c1cb9aa5b60f65216d79428f9cb3b9 Mon Sep 17 00:00:00 2001 From: tokul Date: Mon, 31 Oct 2005 17:29:03 +0000 Subject: [PATCH] use shorter names for x-euc-tw, x-windows-949 and Outlook Express Korean charsets. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10208 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/i18n.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions/i18n.php b/functions/i18n.php index 4b75de8b..9f016144 100644 --- a/functions/i18n.php +++ b/functions/i18n.php @@ -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); -- 2.25.1