From: Tomas K. <to...@us...> - 2003-09-29 09:44:56
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory sc8-pr-cvs1:/tmp/cvs-serv25710 Modified Files: i18n.php Log Message: Adding decoding support for two DOSCyr charsets and several x-mac-* charsets. Information is taken from ftp.unicode.org Index: i18n.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/i18n.php,v retrieving revision 1.149 retrieving revision 1.150 diff -u -w -r1.149 -r1.150 --- i18n.php 2 Sep 2003 15:31:42 -0000 1.149 +++ i18n.php 29 Sep 2003 09:44:42 -0000 1.150 @@ -160,6 +160,33 @@ } else if ($charset == 'windows-1258') { include_once(SM_PATH . 'functions/decode/cp1258.php'); $ret = charset_decode_cp1258 ($string); + } else if ($charset == 'x-mac-roman') { + include_once(SM_PATH . 'functions/decode/cp10000.php'); + $ret = charset_decode_cp10000 ($string); + } else if ($charset == 'x-mac-greek') { + include_once(SM_PATH . 'functions/decode/cp10006.php'); + $ret = charset_decode_cp10006 ($string); + } else if ($charset == 'x-mac-cyrillic') { + include_once(SM_PATH . 'functions/decode/cp10007.php'); + $ret = charset_decode_cp10007 ($string); + } else if ($charset == 'x-mac-ukrainian') { + include_once(SM_PATH . 'functions/decode/cp10017.php'); + $ret = charset_decode_cp10017 ($string); + } else if ($charset == 'x-mac-centraleurroman') { + include_once(SM_PATH . 'functions/decode/cp10029.php'); + $ret = charset_decode_cp10029 ($string); + } else if ($charset == 'x-mac-icelandic') { + include_once(SM_PATH . 'functions/decode/cp10079.php'); + $ret = charset_decode_cp10079 ($string); + } else if ($charset == 'x-mac-turkish') { + include_once(SM_PATH . 'functions/decode/cp10081.php'); + $ret = charset_decode_cp10081 ($string); + } else if ($charset == 'ibm855') { + include_once(SM_PATH . 'functions/decode/cp855.php'); + $ret = charset_decode_cp855 ($string); + } else if ($charset == 'ibm866') { + include_once(SM_PATH . 'functions/decode/cp866.php'); + $ret = charset_decode_cp866 ($string); } else if ($charset == 'tis-620') { include_once(SM_PATH . 'functions/decode/tis620.php'); $ret = charset_decode_tis620 ($string); |