Makes managing decoding easier. Mac decoding moved to separate cvs module
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 21 Dec 2003 11:40:08 +0000 (11:40 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 21 Dec 2003 11:40:08 +0000 (11:40 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6293 7612ce4b-ef26-0410-bec9-ea0150e637f0

27 files changed:
functions/decode/cp10000.php [deleted file]
functions/decode/cp10006.php [deleted file]
functions/decode/cp10007.php [deleted file]
functions/decode/cp10017.php [deleted file]
functions/decode/cp10029.php [deleted file]
functions/decode/cp10079.php [deleted file]
functions/decode/cp10081.php [deleted file]
functions/decode/iso_8859_1.php [moved from functions/decode/iso8859-1.php with 95% similarity]
functions/decode/iso_8859_10.php [moved from functions/decode/iso8859-10.php with 98% similarity]
functions/decode/iso_8859_11.php [moved from functions/decode/iso8859-11.php with 98% similarity]
functions/decode/iso_8859_13.php [moved from functions/decode/iso8859-13.php with 98% similarity]
functions/decode/iso_8859_14.php [moved from functions/decode/iso8859-14.php with 98% similarity]
functions/decode/iso_8859_15.php [moved from functions/decode/iso8859-15.php with 98% similarity]
functions/decode/iso_8859_16.php [moved from functions/decode/iso8859-16.php with 98% similarity]
functions/decode/iso_8859_2.php [moved from functions/decode/iso8859-2.php with 98% similarity]
functions/decode/iso_8859_3.php [moved from functions/decode/iso8859-3.php with 98% similarity]
functions/decode/iso_8859_4.php [moved from functions/decode/iso8859-4.php with 98% similarity]
functions/decode/iso_8859_5.php [moved from functions/decode/iso8859-5.php with 98% similarity]
functions/decode/iso_8859_6.php [moved from functions/decode/iso8859-6.php with 98% similarity]
functions/decode/iso_8859_7.php [moved from functions/decode/iso8859-7.php with 98% similarity]
functions/decode/iso_8859_8.php [moved from functions/decode/iso8859-8.php with 98% similarity]
functions/decode/iso_8859_9.php [moved from functions/decode/iso8859-9.php with 98% similarity]
functions/decode/iso_ir_111.php [moved from functions/decode/iso-ir-111.php with 100% similarity]
functions/decode/koi8_r.php [moved from functions/decode/koi8-r.php with 99% similarity]
functions/decode/koi8_u.php [moved from functions/decode/koi8-u.php with 99% similarity]
functions/decode/tis_620.php [moved from functions/decode/tis620.php with 98% similarity]
functions/decode/utf_8.php [moved from functions/decode/utf-8.php with 97% similarity]

diff --git a/functions/decode/cp10000.php b/functions/decode/cp10000.php
deleted file mode 100644 (file)
index 95c5398..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * decode/cp10000.php
- * $Id$
- *
- * Copyright (c) 2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This file contains cp10000 (MacRoman) decoding function that 
- * is needed to read cp10000 encoded mails in non-cp10000 locale.
- * 
- * Original data taken from:
- *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/ROMAN.TXT
- *
- *  Name:     cp10000_MacRoman to Unicode table
- *  Unicode version: 2.0
- *  Table version: 2.00
- *  Table format:  Format A
- *  Date:          04/24/96
- *  Authors:       Lori Brownell <loribr@microsoft.com>
- *                 K.D. Chang    <a-kchang@microsoft.com>
- * @package squirrelmail
- * @subpackage decode
- */
-
-/**
- * Decode cp10000 (MacRoman) string
- * @param string $string String to decode
- * @return string $string Decoded string
- */
-function charset_decode_cp10000 ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'x-mac-roman')
-        return $string;
-
-    /* Only do the slow convert if there are 8-bit characters */
-    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
-    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
-        return $string;
-
-    $cp10000 = array(
-       "\0x80" => '&#196;',
-       "\0x81" => '&#197;',
-       "\0x82" => '&#199;',
-       "\0x83" => '&#201;',
-       "\0x84" => '&#209;',
-       "\0x85" => '&#214;',
-       "\0x86" => '&#220;',
-       "\0x87" => '&#225;',
-       "\0x88" => '&#224;',
-       "\0x89" => '&#226;',
-       "\0x8A" => '&#228;',
-       "\0x8B" => '&#227;',
-       "\0x8C" => '&#229;',
-       "\0x8D" => '&#231;',
-       "\0x8E" => '&#233;',
-       "\0x8F" => '&#232;',
-       "\0x90" => '&#234;',
-       "\0x91" => '&#235;',
-       "\0x92" => '&#237;',
-       "\0x93" => '&#236;',
-       "\0x94" => '&#238;',
-       "\0x95" => '&#239;',
-       "\0x96" => '&#241;',
-       "\0x97" => '&#243;',
-       "\0x98" => '&#242;',
-       "\0x99" => '&#244;',
-       "\0x9A" => '&#246;',
-       "\0x9B" => '&#245;',
-       "\0x9C" => '&#250;',
-       "\0x9D" => '&#249;',
-       "\0x9E" => '&#251;',
-       "\0x9F" => '&#252;',
-       "\0xA0" => '&#8224;',
-       "\0xA1" => '&#176;',
-       "\0xA2" => '&#162;',
-       "\0xA3" => '&#163;',
-       "\0xA4" => '&#167;',
-       "\0xA5" => '&#8226;',
-       "\0xA6" => '&#182;',
-       "\0xA7" => '&#223;',
-       "\0xA8" => '&#174;',
-       "\0xA9" => '&#169;',
-       "\0xAA" => '&#8482;',
-       "\0xAB" => '&#180;',
-       "\0xAC" => '&#168;',
-       "\0xAD" => '&#8800;',
-       "\0xAE" => '&#198;',
-       "\0xAF" => '&#216;',
-       "\0xB0" => '&#8734;',
-       "\0xB1" => '&#177;',
-       "\0xB2" => '&#8804;',
-       "\0xB3" => '&#8805;',
-       "\0xB4" => '&#165;',
-       "\0xB5" => '&#181;',
-       "\0xB6" => '&#8706;',
-       "\0xB7" => '&#8721;',
-       "\0xB8" => '&#8719;',
-       "\0xB9" => '&#960;',
-       "\0xBA" => '&#8747;',
-       "\0xBB" => '&#170;',
-       "\0xBC" => '&#186;',
-       "\0xBD" => '&#8486;',
-       "\0xBE" => '&#230;',
-       "\0xBF" => '&#248;',
-       "\0xC0" => '&#191;',
-       "\0xC1" => '&#161;',
-       "\0xC2" => '&#172;',
-       "\0xC3" => '&#8730;',
-       "\0xC4" => '&#402;',
-       "\0xC5" => '&#8776;',
-       "\0xC6" => '&#8710;',
-       "\0xC7" => '&#171;',
-       "\0xC8" => '&#187;',
-       "\0xC9" => '&#8230;',
-       "\0xCA" => '&#160;',
-       "\0xCB" => '&#192;',
-       "\0xCC" => '&#195;',
-       "\0xCD" => '&#213;',
-       "\0xCE" => '&#338;',
-       "\0xCF" => '&#339;',
-       "\0xD0" => '&#8211;',
-       "\0xD1" => '&#8212;',
-       "\0xD2" => '&#8220;',
-       "\0xD3" => '&#8221;',
-       "\0xD4" => '&#8216;',
-       "\0xD5" => '&#8217;',
-       "\0xD6" => '&#247;',
-       "\0xD7" => '&#9674;',
-       "\0xD8" => '&#255;',
-       "\0xD9" => '&#376;',
-       "\0xDA" => '&#8260;',
-       "\0xDB" => '&#164;',
-       "\0xDC" => '&#8249;',
-       "\0xDD" => '&#8250;',
-       "\0xDE" => '&#64257;',
-       "\0xDF" => '&#64258;',
-       "\0xE0" => '&#8225;',
-       "\0xE1" => '&#183;',
-       "\0xE2" => '&#8218;',
-       "\0xE3" => '&#8222;',
-       "\0xE4" => '&#8240;',
-       "\0xE5" => '&#194;',
-       "\0xE6" => '&#202;',
-       "\0xE7" => '&#193;',
-       "\0xE8" => '&#203;',
-       "\0xE9" => '&#200;',
-       "\0xEA" => '&#205;',
-       "\0xEB" => '&#206;',
-       "\0xEC" => '&#207;',
-       "\0xED" => '&#204;',
-       "\0xEE" => '&#211;',
-       "\0xEF" => '&#212;',
-       "\0xF0" => '&#65535;',
-       "\0xF1" => '&#210;',
-       "\0xF2" => '&#218;',
-       "\0xF3" => '&#219;',
-       "\0xF4" => '&#217;',
-       "\0xF5" => '&#305;',
-       "\0xF6" => '&#710;',
-       "\0xF7" => '&#732;',
-       "\0xF8" => '&#175;',
-       "\0xF9" => '&#728;',
-       "\0xFA" => '&#729;',
-       "\0xFB" => '&#730;',
-       "\0xFC" => '&#184;',
-       "\0xFD" => '&#733;',
-       "\0xFE" => '&#731;',
-       "\0xFF" => '&#711;'
-    );
-
-    $string = str_replace(array_keys($cp10000), array_values($cp10000), $string);
-
-    return $string;
-}
-?>
diff --git a/functions/decode/cp10006.php b/functions/decode/cp10006.php
deleted file mode 100644 (file)
index ec5e7af..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * decode/cp10006.php
- * $Id$
- *
- * Copyright (c) 2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This file contains cp10006 (MacGreek) decoding function that 
- * is needed to read cp10006 encoded mails in non-cp10006 locale.
- * 
- * Original data taken from:
- *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/GREEK.TXT
- *
- *  Name:     cp10006_MacGreek to Unicode table
- *  Unicode version: 2.0
- *  Table version: 2.00
- *  Table format:  Format A
- *  Date:          04/24/96
- *  Authors:       Lori Brownell <loribr@microsoft.com>
- *                 K.D. Chang    <a-kchang@microsoft.com>
- * @package squirrelmail
- * @subpackage decode
- */
-
-/**
- * Decode cp10006 (MacGreek) string
- * @param string $string String to decode
- * @return string $string Decoded string
- */
-function charset_decode_cp10006 ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'x-mac-greek')
-        return $string;
-
-    /* Only do the slow convert if there are 8-bit characters */
-    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
-    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
-        return $string;
-
-    $cp10006 = array(
-       "\0x80" => '&#196;',
-       "\0x81" => '&#185;',
-       "\0x82" => '&#178;',
-       "\0x83" => '&#201;',
-       "\0x84" => '&#179;',
-       "\0x85" => '&#214;',
-       "\0x86" => '&#220;',
-       "\0x87" => '&#901;',
-       "\0x88" => '&#224;',
-       "\0x89" => '&#226;',
-       "\0x8A" => '&#228;',
-       "\0x8B" => '&#900;',
-       "\0x8C" => '&#168;',
-       "\0x8D" => '&#231;',
-       "\0x8E" => '&#233;',
-       "\0x8F" => '&#232;',
-       "\0x90" => '&#234;',
-       "\0x91" => '&#235;',
-       "\0x92" => '&#163;',
-       "\0x93" => '&#8482;',
-       "\0x94" => '&#238;',
-       "\0x95" => '&#239;',
-       "\0x96" => '&#8226;',
-       "\0x97" => '&#189;',
-       "\0x98" => '&#8240;',
-       "\0x99" => '&#244;',
-       "\0x9A" => '&#246;',
-       "\0x9B" => '&#166;',
-       "\0x9C" => '&#173;',
-       "\0x9D" => '&#249;',
-       "\0x9E" => '&#251;',
-       "\0x9F" => '&#252;',
-       "\0xA0" => '&#8224;',
-       "\0xA1" => '&#915;',
-       "\0xA2" => '&#916;',
-       "\0xA3" => '&#920;',
-       "\0xA4" => '&#923;',
-       "\0xA5" => '&#926;',
-       "\0xA6" => '&#928;',
-       "\0xA7" => '&#223;',
-       "\0xA8" => '&#174;',
-       "\0xA9" => '&#169;',
-       "\0xAA" => '&#931;',
-       "\0xAB" => '&#938;',
-       "\0xAC" => '&#167;',
-       "\0xAD" => '&#8800;',
-       "\0xAE" => '&#176;',
-       "\0xAF" => '&#903;',
-       "\0xB0" => '&#913;',
-       "\0xB1" => '&#177;',
-       "\0xB2" => '&#8804;',
-       "\0xB3" => '&#8805;',
-       "\0xB4" => '&#165;',
-       "\0xB5" => '&#914;',
-       "\0xB6" => '&#917;',
-       "\0xB7" => '&#918;',
-       "\0xB8" => '&#919;',
-       "\0xB9" => '&#921;',
-       "\0xBA" => '&#922;',
-       "\0xBB" => '&#924;',
-       "\0xBC" => '&#934;',
-       "\0xBD" => '&#939;',
-       "\0xBE" => '&#936;',
-       "\0xBF" => '&#937;',
-       "\0xC0" => '&#940;',
-       "\0xC1" => '&#925;',
-       "\0xC2" => '&#172;',
-       "\0xC3" => '&#927;',
-       "\0xC4" => '&#929;',
-       "\0xC5" => '&#8776;',
-       "\0xC6" => '&#932;',
-       "\0xC7" => '&#171;',
-       "\0xC8" => '&#187;',
-       "\0xC9" => '&#8230;',
-       "\0xCA" => '&#160;',
-       "\0xCB" => '&#933;',
-       "\0xCC" => '&#935;',
-       "\0xCD" => '&#902;',
-       "\0xCE" => '&#904;',
-       "\0xCF" => '&#339;',
-       "\0xD0" => '&#8211;',
-       "\0xD1" => '&#8213;',
-       "\0xD2" => '&#8220;',
-       "\0xD3" => '&#8221;',
-       "\0xD4" => '&#8216;',
-       "\0xD5" => '&#8217;',
-       "\0xD6" => '&#247;',
-       "\0xD7" => '&#905;',
-       "\0xD8" => '&#906;',
-       "\0xD9" => '&#908;',
-       "\0xDA" => '&#910;',
-       "\0xDB" => '&#941;',
-       "\0xDC" => '&#942;',
-       "\0xDD" => '&#943;',
-       "\0xDE" => '&#972;',
-       "\0xDF" => '&#911;',
-       "\0xE0" => '&#973;',
-       "\0xE1" => '&#945;',
-       "\0xE2" => '&#946;',
-       "\0xE3" => '&#968;',
-       "\0xE4" => '&#948;',
-       "\0xE5" => '&#949;',
-       "\0xE6" => '&#966;',
-       "\0xE7" => '&#947;',
-       "\0xE8" => '&#951;',
-       "\0xE9" => '&#953;',
-       "\0xEA" => '&#958;',
-       "\0xEB" => '&#954;',
-       "\0xEC" => '&#955;',
-       "\0xED" => '&#956;',
-       "\0xEE" => '&#957;',
-       "\0xEF" => '&#959;',
-       "\0xF0" => '&#960;',
-       "\0xF1" => '&#974;',
-       "\0xF2" => '&#961;',
-       "\0xF3" => '&#963;',
-       "\0xF4" => '&#964;',
-       "\0xF5" => '&#952;',
-       "\0xF6" => '&#969;',
-       "\0xF7" => '&#962;',
-       "\0xF8" => '&#967;',
-       "\0xF9" => '&#965;',
-       "\0xFA" => '&#950;',
-       "\0xFB" => '&#970;',
-       "\0xFC" => '&#971;',
-       "\0xFD" => '&#912;',
-       "\0xFE" => '&#944;',
-       "\0xFF" => '&#65535;'
-   );
-
-    $string = str_replace(array_keys($cp10006), array_values($cp10006), $string);
-
-    return $string;
-}
-?>
diff --git a/functions/decode/cp10007.php b/functions/decode/cp10007.php
deleted file mode 100644 (file)
index 0794efd..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * decode/cp10007.php
- * $Id$
- *
- * Copyright (c) 2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This file contains cp10007 (MacCyrillic) decoding function that 
- * is needed to read cp10007 encoded mails in non-cp10007 locale.
- * 
- * Original data taken from:
- *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/CYRILLIC.TXT
- *
- *   Name:     cp10007_MacCyrillic to Unicode table
- *   Unicode version: 2.0
- *   Table version: 2.00
- *   Table format:  Format A
- *   Date:          04/24/96
- *   Authors:       Lori Brownell <loribr@microsoft.com>
- *          K.D. Chang    <a-kchang@microsoft.com>
- * @package squirrelmail
- * @subpackage decode
- */
-
-/**
- * Decode cp10007 (MacCyrillic) string
- * @param string $string MacCyrillic string to decode
- * @return string $string Decoded string
- */
-function charset_decode_cp10007 ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'x-mac-cyrillic')
-        return $string;
-
-    /* Only do the slow convert if there are 8-bit characters */
-    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
-    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
-        return $string;
-
-    $cp10007 = array(
-       "\x80" => '&#1040;',
-       "\x81" => '&#1041;',
-       "\x82" => '&#1042;',
-       "\x83" => '&#1043;',
-       "\x84" => '&#1044;',
-       "\x85" => '&#1045;',
-       "\x86" => '&#1046;',
-       "\x87" => '&#1047;',
-       "\x88" => '&#1048;',
-       "\x89" => '&#1049;',
-       "\x8A" => '&#1050;',
-       "\x8B" => '&#1051;',
-       "\x8C" => '&#1052;',
-       "\x8D" => '&#1053;',
-       "\x8E" => '&#1054;',
-       "\x8F" => '&#1055;',
-       "\x90" => '&#1056;',
-       "\x91" => '&#1057;',
-       "\x92" => '&#1058;',
-       "\x93" => '&#1059;',
-       "\x94" => '&#1060;',
-       "\x95" => '&#1061;',
-       "\x96" => '&#1062;',
-       "\x97" => '&#1063;',
-       "\x98" => '&#1064;',
-       "\x99" => '&#1065;',
-       "\x9A" => '&#1066;',
-       "\x9B" => '&#1067;',
-       "\x9C" => '&#1068;',
-       "\x9D" => '&#1069;',
-       "\x9E" => '&#1070;',
-       "\x9F" => '&#1071;',
-       "\xA0" => '&#8224;',
-       "\xA1" => '&#176;',
-       "\xA2" => '&#162;',
-       "\xA3" => '&#163;',
-       "\xA4" => '&#167;',
-       "\xA5" => '&#8226;',
-       "\xA6" => '&#182;',
-       "\xA7" => '&#1030;',
-       "\xA8" => '&#174;',
-       "\xA9" => '&#169;',
-       "\xAA" => '&#8482;',
-       "\xAB" => '&#1026;',
-       "\xAC" => '&#1106;',
-       "\xAD" => '&#8800;',
-       "\xAE" => '&#1027;',
-       "\xAF" => '&#1107;',
-       "\xB0" => '&#8734;',
-       "\xB1" => '&#177;',
-       "\xB2" => '&#8804;',
-       "\xB3" => '&#8805;',
-       "\xB4" => '&#1110;',
-       "\xB5" => '&#181;',
-       "\xB6" => '&#8706;',
-       "\xB7" => '&#1032;',
-       "\xB8" => '&#1028;',
-       "\xB9" => '&#1108;',
-       "\xBA" => '&#1031;',
-       "\xBB" => '&#1111;',
-       "\xBC" => '&#1033;',
-       "\xBD" => '&#1113;',
-       "\xBE" => '&#1034;',
-       "\xBF" => '&#1114;',
-       "\xC0" => '&#1112;',
-       "\xC1" => '&#1029;',
-       "\xC2" => '&#172;',
-       "\xC3" => '&#8730;',
-       "\xC4" => '&#402;',
-       "\xC5" => '&#8776;',
-       "\xC6" => '&#8710;',
-       "\xC7" => '&#171;',
-       "\xC8" => '&#187;',
-       "\xC9" => '&#8230;',
-       "\xCA" => '&#160;',
-       "\xCB" => '&#1035;',
-       "\xCC" => '&#1115;',
-       "\xCD" => '&#1036;',
-       "\xCE" => '&#1116;',
-       "\xCF" => '&#1109;',
-       "\xD0" => '&#8211;',
-       "\xD1" => '&#8212;',
-       "\xD2" => '&#8220;',
-       "\xD3" => '&#8221;',
-       "\xD4" => '&#8216;',
-       "\xD5" => '&#8217;',
-       "\xD6" => '&#247;',
-       "\xD7" => '&#8222;',
-       "\xD8" => '&#1038;',
-       "\xD9" => '&#1118;',
-       "\xDA" => '&#1039;',
-       "\xDB" => '&#1119;',
-       "\xDC" => '&#8470;',
-       "\xDD" => '&#1025;',
-       "\xDE" => '&#1105;',
-       "\xDF" => '&#1103;',
-       "\xE0" => '&#1072;',
-       "\xE1" => '&#1073;',
-       "\xE2" => '&#1074;',
-       "\xE3" => '&#1075;',
-       "\xE4" => '&#1076;',
-       "\xE5" => '&#1077;',
-       "\xE6" => '&#1078;',
-       "\xE7" => '&#1079;',
-       "\xE8" => '&#1080;',
-       "\xE9" => '&#1081;',
-       "\xEA" => '&#1082;',
-       "\xEB" => '&#1083;',
-       "\xEC" => '&#1084;',
-       "\xED" => '&#1085;',
-       "\xEE" => '&#1086;',
-       "\xEF" => '&#1087;',
-       "\xF0" => '&#1088;',
-       "\xF1" => '&#1089;',
-       "\xF2" => '&#1090;',
-       "\xF3" => '&#1091;',
-       "\xF4" => '&#1092;',
-       "\xF5" => '&#1093;',
-       "\xF6" => '&#1094;',
-       "\xF7" => '&#1095;',
-       "\xF8" => '&#1096;',
-       "\xF9" => '&#1097;',
-       "\xFA" => '&#1098;',
-       "\xFB" => '&#1099;',
-       "\xFC" => '&#1100;',
-       "\xFD" => '&#1101;',
-       "\xFE" => '&#1102;',
-       "\xFF" => '&#164;'
-    );
-
-    $string = str_replace(array_keys($cp10007), array_values($cp10007), $string);
-
-    return $string;
-}
-?>
diff --git a/functions/decode/cp10017.php b/functions/decode/cp10017.php
deleted file mode 100644 (file)
index 57d6e55..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-<?php
-/**
- * decode/cp10017.php
- * $Id$
- *
- * Copyright (c) 2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This file contains cp10017 (MacUkrainian) decoding function that 
- * is needed to read cp10017 encoded mails in non-cp10017 locale.
- * 
- * Apple states [2] that x-mac-ukrainian differs from x-mac-cyrillic [1] 
- * only in two places. According to [3] these symbols are:
- *  0x92 - U+1168 - CYRILLIC CAPITAL LETTER GHE WITH UPTURN
- *  0xD6 - U+1169 - CYRILLIC SMALL LETTER GHE WITH UPTURN
- *
- * References:
- * 1. ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/CYRILLIC.TXT
- * 2. http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html
- * 3. http://shlimazl.nm.ru/rus/cptable.htm (page in Russian)
- * @package squirrelmail
- * @subpackage decode
- */
-
-/**
- * Decode a cp10017 (MacUkrainian) string
- * @param string $string Encoded string
- * @return string $string Decoded string
- */
-function charset_decode_cp10017 ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'x-mac-ukrainian')
-        return $string;
-
-    /* Only do the slow convert if there are 8-bit characters */
-    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
-    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
-        return $string;
-
-    $cp10017 = array(
-       "\x80" => '&#1040;',
-       "\x81" => '&#1041;',
-       "\x82" => '&#1042;',
-       "\x83" => '&#1043;',
-       "\x84" => '&#1044;',
-       "\x85" => '&#1045;',
-       "\x86" => '&#1046;',
-       "\x87" => '&#1047;',
-       "\x88" => '&#1048;',
-       "\x89" => '&#1049;',
-       "\x8A" => '&#1050;',
-       "\x8B" => '&#1051;',
-       "\x8C" => '&#1052;',
-       "\x8D" => '&#1053;',
-       "\x8E" => '&#1054;',
-       "\x8F" => '&#1055;',
-       "\x90" => '&#1056;',
-       "\x91" => '&#1057;',
-       "\x92" => '&#1168;',
-       "\x93" => '&#1059;',
-       "\x94" => '&#1060;',
-       "\x95" => '&#1061;',
-       "\x96" => '&#1062;',
-       "\x97" => '&#1063;',
-       "\x98" => '&#1064;',
-       "\x99" => '&#1065;',
-       "\x9A" => '&#1066;',
-       "\x9B" => '&#1067;',
-       "\x9C" => '&#1068;',
-       "\x9D" => '&#1069;',
-       "\x9E" => '&#1070;',
-       "\x9F" => '&#1071;',
-       "\xA0" => '&#8224;',
-       "\xA1" => '&#176;',
-       "\xA2" => '&#162;',
-       "\xA3" => '&#163;',
-       "\xA4" => '&#167;',
-       "\xA5" => '&#8226;',
-       "\xA6" => '&#182;',
-       "\xA7" => '&#1030;',
-       "\xA8" => '&#174;',
-       "\xA9" => '&#169;',
-       "\xAA" => '&#8482;',
-       "\xAB" => '&#1026;',
-       "\xAC" => '&#1106;',
-       "\xAD" => '&#8800;',
-       "\xAE" => '&#1027;',
-       "\xAF" => '&#1107;',
-       "\xB0" => '&#8734;',
-       "\xB1" => '&#177;',
-       "\xB2" => '&#8804;',
-       "\xB3" => '&#8805;',
-       "\xB4" => '&#1110;',
-       "\xB5" => '&#181;',
-       "\xB6" => '&#8706;',
-       "\xB7" => '&#1032;',
-       "\xB8" => '&#1028;',
-       "\xB9" => '&#1108;',
-       "\xBA" => '&#1031;',
-       "\xBB" => '&#1111;',
-       "\xBC" => '&#1033;',
-       "\xBD" => '&#1113;',
-       "\xBE" => '&#1034;',
-       "\xBF" => '&#1114;',
-       "\xC0" => '&#1112;',
-       "\xC1" => '&#1029;',
-       "\xC2" => '&#172;',
-       "\xC3" => '&#8730;',
-       "\xC4" => '&#402;',
-       "\xC5" => '&#8776;',
-       "\xC6" => '&#8710;',
-       "\xC7" => '&#171;',
-       "\xC8" => '&#187;',
-       "\xC9" => '&#8230;',
-       "\xCA" => '&#160;',
-       "\xCB" => '&#1035;',
-       "\xCC" => '&#1115;',
-       "\xCD" => '&#1036;',
-       "\xCE" => '&#1116;',
-       "\xCF" => '&#1109;',
-       "\xD0" => '&#8211;',
-       "\xD1" => '&#8212;',
-       "\xD2" => '&#8220;',
-       "\xD3" => '&#8221;',
-       "\xD4" => '&#8216;',
-       "\xD5" => '&#8217;',
-       "\xD6" => '&#1169;',
-       "\xD7" => '&#8222;',
-       "\xD8" => '&#1038;',
-       "\xD9" => '&#1118;',
-       "\xDA" => '&#1039;',
-       "\xDB" => '&#1119;',
-       "\xDC" => '&#8470;',
-       "\xDD" => '&#1025;',
-       "\xDE" => '&#1105;',
-       "\xDF" => '&#1103;',
-       "\xE0" => '&#1072;',
-       "\xE1" => '&#1073;',
-       "\xE2" => '&#1074;',
-       "\xE3" => '&#1075;',
-       "\xE4" => '&#1076;',
-       "\xE5" => '&#1077;',
-       "\xE6" => '&#1078;',
-       "\xE7" => '&#1079;',
-       "\xE8" => '&#1080;',
-       "\xE9" => '&#1081;',
-       "\xEA" => '&#1082;',
-       "\xEB" => '&#1083;',
-       "\xEC" => '&#1084;',
-       "\xED" => '&#1085;',
-       "\xEE" => '&#1086;',
-       "\xEF" => '&#1087;',
-       "\xF0" => '&#1088;',
-       "\xF1" => '&#1089;',
-       "\xF2" => '&#1090;',
-       "\xF3" => '&#1091;',
-       "\xF4" => '&#1092;',
-       "\xF5" => '&#1093;',
-       "\xF6" => '&#1094;',
-       "\xF7" => '&#1095;',
-       "\xF8" => '&#1096;',
-       "\xF9" => '&#1097;',
-       "\xFA" => '&#1098;',
-       "\xFB" => '&#1099;',
-       "\xFC" => '&#1100;',
-       "\xFD" => '&#1101;',
-       "\xFE" => '&#1102;',
-       "\xFF" => '&#164;'
-    );
-
-    $string = str_replace(array_keys($cp10017), array_values($cp10017), $string);
-
-    return $string;
-}
-?>
diff --git a/functions/decode/cp10029.php b/functions/decode/cp10029.php
deleted file mode 100644 (file)
index cd06b68..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * decode/cp10029.php
- * $Id$
- *
- * Copyright (c) 2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This file contains cp10029 (MacLatin2) decoding function that 
- * is needed to read cp10029 encoded mails in non-cp10029 locale.
- * 
- * Original data taken from:
- *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/LATIN2.TXT
- *
- *  Name:     cp10029_MacLatin2 to Unicode table
- *  Unicode version: 2.0
- *  Table version: 2.00
- *  Table format:  Format A
- *  Date:          04/24/96
- *  Authors:       Lori Brownell <loribr@microsoft.com>
- *                 K.D. Chang    <a-kchang@microsoft.com>
- * @package squirrelmail
- * @subpackage decode
- */
-
-/**
- * Decode cp10029 (MacLatin2) string
- * @param string $string Encoded string
- * @return string $string Decoded string
- */
-function charset_decode_cp10029 ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'x-mac-centraleurroman')
-        return $string;
-
-    /* Only do the slow convert if there are 8-bit characters */
-    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
-    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
-        return $string;
-
-    $cp10029 = array(
-       "\0x80" => '&#196;',
-       "\0x81" => '&#256;',
-       "\0x82" => '&#257;',
-       "\0x83" => '&#201;',
-       "\0x84" => '&#260;',
-       "\0x85" => '&#214;',
-       "\0x86" => '&#220;',
-       "\0x87" => '&#225;',
-       "\0x88" => '&#261;',
-       "\0x89" => '&#268;',
-       "\0x8A" => '&#228;',
-       "\0x8B" => '&#269;',
-       "\0x8C" => '&#262;',
-       "\0x8D" => '&#263;',
-       "\0x8E" => '&#233;',
-       "\0x8F" => '&#377;',
-       "\0x90" => '&#378;',
-       "\0x91" => '&#270;',
-       "\0x92" => '&#237;',
-       "\0x93" => '&#271;',
-       "\0x94" => '&#274;',
-       "\0x95" => '&#275;',
-       "\0x96" => '&#278;',
-       "\0x97" => '&#243;',
-       "\0x98" => '&#279;',
-       "\0x99" => '&#244;',
-       "\0x9A" => '&#246;',
-       "\0x9B" => '&#245;',
-       "\0x9C" => '&#250;',
-       "\0x9D" => '&#282;',
-       "\0x9E" => '&#283;',
-       "\0x9F" => '&#252;',
-       "\0xA0" => '&#8224;',
-       "\0xA1" => '&#176;',
-       "\0xA2" => '&#280;',
-       "\0xA3" => '&#163;',
-       "\0xA4" => '&#167;',
-       "\0xA5" => '&#8226;',
-       "\0xA6" => '&#182;',
-       "\0xA7" => '&#223;',
-       "\0xA8" => '&#174;',
-       "\0xA9" => '&#169;',
-       "\0xAA" => '&#8482;',
-       "\0xAB" => '&#281;',
-       "\0xAC" => '&#168;',
-       "\0xAD" => '&#8800;',
-       "\0xAE" => '&#291;',
-       "\0xAF" => '&#302;',
-       "\0xB0" => '&#303;',
-       "\0xB1" => '&#298;',
-       "\0xB2" => '&#8804;',
-       "\0xB3" => '&#8805;',
-       "\0xB4" => '&#299;',
-       "\0xB5" => '&#310;',
-       "\0xB6" => '&#8706;',
-       "\0xB7" => '&#8721;',
-       "\0xB8" => '&#322;',
-       "\0xB9" => '&#315;',
-       "\0xBA" => '&#316;',
-       "\0xBB" => '&#317;',
-       "\0xBC" => '&#318;',
-       "\0xBD" => '&#313;',
-       "\0xBE" => '&#314;',
-       "\0xBF" => '&#325;',
-       "\0xC0" => '&#326;',
-       "\0xC1" => '&#323;',
-       "\0xC2" => '&#172;',
-       "\0xC3" => '&#8730;',
-       "\0xC4" => '&#324;',
-       "\0xC5" => '&#327;',
-       "\0xC6" => '&#8710;',
-       "\0xC7" => '&#171;',
-       "\0xC8" => '&#187;',
-       "\0xC9" => '&#8230;',
-       "\0xCA" => '&#160;',
-       "\0xCB" => '&#328;',
-       "\0xCC" => '&#336;',
-       "\0xCD" => '&#213;',
-       "\0xCE" => '&#337;',
-       "\0xCF" => '&#332;',
-       "\0xD0" => '&#8211;',
-       "\0xD1" => '&#8212;',
-       "\0xD2" => '&#8220;',
-       "\0xD3" => '&#8221;',
-       "\0xD4" => '&#8216;',
-       "\0xD5" => '&#8217;',
-       "\0xD6" => '&#247;',
-       "\0xD7" => '&#9674;',
-       "\0xD8" => '&#333;',
-       "\0xD9" => '&#340;',
-       "\0xDA" => '&#341;',
-       "\0xDB" => '&#344;',
-       "\0xDC" => '&#8249;',
-       "\0xDD" => '&#8250;',
-       "\0xDE" => '&#345;',
-       "\0xDF" => '&#342;',
-       "\0xE0" => '&#343;',
-       "\0xE1" => '&#352;',
-       "\0xE2" => '&#8218;',
-       "\0xE3" => '&#8222;',
-       "\0xE4" => '&#353;',
-       "\0xE5" => '&#346;',
-       "\0xE6" => '&#347;',
-       "\0xE7" => '&#193;',
-       "\0xE8" => '&#356;',
-       "\0xE9" => '&#357;',
-       "\0xEA" => '&#205;',
-       "\0xEB" => '&#381;',
-       "\0xEC" => '&#382;',
-       "\0xED" => '&#362;',
-       "\0xEE" => '&#211;',
-       "\0xEF" => '&#212;',
-       "\0xF0" => '&#363;',
-       "\0xF1" => '&#366;',
-       "\0xF2" => '&#218;',
-       "\0xF3" => '&#367;',
-       "\0xF4" => '&#368;',
-       "\0xF5" => '&#369;',
-       "\0xF6" => '&#370;',
-       "\0xF7" => '&#371;',
-       "\0xF8" => '&#221;',
-       "\0xF9" => '&#253;',
-       "\0xFA" => '&#311;',
-       "\0xFB" => '&#379;',
-       "\0xFC" => '&#321;',
-       "\0xFD" => '&#380;',
-       "\0xFE" => '&#290;',
-       "\0xFF" => '&#711;'
-   );
-
-    $string = str_replace(array_keys($cp10029), array_values($cp10029), $string);
-
-    return $string;
-}
-?>
diff --git a/functions/decode/cp10079.php b/functions/decode/cp10079.php
deleted file mode 100644 (file)
index 5853ddb..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * decode/cp10079.php
- * $Id$
- *
- * Copyright (c) 2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This file contains cp10079 (MacIcelandic) decoding function that 
- * is needed to read cp10079 encoded mails in non-cp10079 locale.
- * 
- * Original data taken from:
- *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/ICELAND.TXT
- *
- *  Name:     cp10079_MacIcelandic to Unicode table
- *  Unicode version: 2.0
- *  Table version: 2.00
- *  Table format:  Format A
- *  Date:          04/24/96
- *  Authors:       Lori Brownell <loribr@microsoft.com>
- *                 K.D. Chang    <a-kchang@microsoft.com>
- * @package squirrelmail
- * @subpackage decode
- */
-
-/**
- * Decode a cp10079 (MacIcelandic) string
- * @param string $string Encoded string
- * @return string $string Decoded string
- */
-function charset_decode_cp10079 ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'x-mac-icelandic')
-        return $string;
-
-    /* Only do the slow convert if there are 8-bit characters */
-    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
-    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
-        return $string;
-
-    $cp10079 = array(
-       "\0x80" => '&#196;',
-       "\0x81" => '&#197;',
-       "\0x82" => '&#199;',
-       "\0x83" => '&#201;',
-       "\0x84" => '&#209;',
-       "\0x85" => '&#214;',
-       "\0x86" => '&#220;',
-       "\0x87" => '&#225;',
-       "\0x88" => '&#224;',
-       "\0x89" => '&#226;',
-       "\0x8A" => '&#228;',
-       "\0x8B" => '&#227;',
-       "\0x8C" => '&#229;',
-       "\0x8D" => '&#231;',
-       "\0x8E" => '&#233;',
-       "\0x8F" => '&#232;',
-       "\0x90" => '&#234;',
-       "\0x91" => '&#235;',
-       "\0x92" => '&#237;',
-       "\0x93" => '&#236;',
-       "\0x94" => '&#238;',
-       "\0x95" => '&#239;',
-       "\0x96" => '&#241;',
-       "\0x97" => '&#243;',
-       "\0x98" => '&#242;',
-       "\0x99" => '&#244;',
-       "\0x9A" => '&#246;',
-       "\0x9B" => '&#245;',
-       "\0x9C" => '&#250;',
-       "\0x9D" => '&#249;',
-       "\0x9E" => '&#251;',
-       "\0x9F" => '&#252;',
-       "\0xA0" => '&#221;',
-       "\0xA1" => '&#176;',
-       "\0xA2" => '&#162;',
-       "\0xA3" => '&#163;',
-       "\0xA4" => '&#167;',
-       "\0xA5" => '&#8226;',
-       "\0xA6" => '&#182;',
-       "\0xA7" => '&#223;',
-       "\0xA8" => '&#174;',
-       "\0xA9" => '&#169;',
-       "\0xAA" => '&#8482;',
-       "\0xAB" => '&#180;',
-       "\0xAC" => '&#168;',
-       "\0xAD" => '&#8800;',
-       "\0xAE" => '&#198;',
-       "\0xAF" => '&#216;',
-       "\0xB0" => '&#8734;',
-       "\0xB1" => '&#177;',
-       "\0xB2" => '&#8804;',
-       "\0xB3" => '&#8805;',
-       "\0xB4" => '&#165;',
-       "\0xB5" => '&#181;',
-       "\0xB6" => '&#8706;',
-       "\0xB7" => '&#8721;',
-       "\0xB8" => '&#8719;',
-       "\0xB9" => '&#960;',
-       "\0xBA" => '&#8747;',
-       "\0xBB" => '&#170;',
-       "\0xBC" => '&#186;',
-       "\0xBD" => '&#8486;',
-       "\0xBE" => '&#230;',
-       "\0xBF" => '&#248;',
-       "\0xC0" => '&#191;',
-       "\0xC1" => '&#161;',
-       "\0xC2" => '&#172;',
-       "\0xC3" => '&#8730;',
-       "\0xC4" => '&#402;',
-       "\0xC5" => '&#8776;',
-       "\0xC6" => '&#8710;',
-       "\0xC7" => '&#171;',
-       "\0xC8" => '&#187;',
-       "\0xC9" => '&#8230;',
-       "\0xCA" => '&#160;',
-       "\0xCB" => '&#192;',
-       "\0xCC" => '&#195;',
-       "\0xCD" => '&#213;',
-       "\0xCE" => '&#338;',
-       "\0xCF" => '&#339;',
-       "\0xD0" => '&#8211;',
-       "\0xD1" => '&#8212;',
-       "\0xD2" => '&#8220;',
-       "\0xD3" => '&#8221;',
-       "\0xD4" => '&#8216;',
-       "\0xD5" => '&#8217;',
-       "\0xD6" => '&#247;',
-       "\0xD7" => '&#9674;',
-       "\0xD8" => '&#255;',
-       "\0xD9" => '&#376;',
-       "\0xDA" => '&#8260;',
-       "\0xDB" => '&#164;',
-       "\0xDC" => '&#208;',
-       "\0xDD" => '&#240;',
-       "\0xDE" => '&#222;',
-       "\0xDF" => '&#254;',
-       "\0xE0" => '&#253;',
-       "\0xE1" => '&#183;',
-       "\0xE2" => '&#8218;',
-       "\0xE3" => '&#8222;',
-       "\0xE4" => '&#8240;',
-       "\0xE5" => '&#194;',
-       "\0xE6" => '&#202;',
-       "\0xE7" => '&#193;',
-       "\0xE8" => '&#203;',
-       "\0xE9" => '&#200;',
-       "\0xEA" => '&#205;',
-       "\0xEB" => '&#206;',
-       "\0xEC" => '&#207;',
-       "\0xED" => '&#204;',
-       "\0xEE" => '&#211;',
-       "\0xEF" => '&#212;',
-       "\0xF0" => '&#65535;',
-       "\0xF1" => '&#210;',
-       "\0xF2" => '&#218;',
-       "\0xF3" => '&#219;',
-       "\0xF4" => '&#217;',
-       "\0xF5" => '&#305;',
-       "\0xF6" => '&#710;',
-       "\0xF7" => '&#732;',
-       "\0xF8" => '&#175;',
-       "\0xF9" => '&#728;',
-       "\0xFA" => '&#729;',
-       "\0xFB" => '&#730;',
-       "\0xFC" => '&#184;',
-       "\0xFD" => '&#733;',
-       "\0xFE" => '&#731;',
-       "\0xFF" => '&#711;'
-   );
-
-    $string = str_replace(array_keys($cp10079), array_values($cp10079), $string);
-
-    return $string;
-}
-?>
diff --git a/functions/decode/cp10081.php b/functions/decode/cp10081.php
deleted file mode 100644 (file)
index ec0d3de..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/**
- * decode/cp10081.php
- * $Id$
- *
- * Copyright (c) 2003 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This file contains cp10081 (MacTurkish) decoding function that 
- * is needed to read cp10081 encoded mails in non-cp10081 locale.
- * 
- * Original data taken from:
- *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/MAC/TURKISH.TXT
- *
- *  Name:     cp10081_MacTurkish to Unicode table
- *  Unicode version: 2.0
- *  Table version: 2.00
- *  Table format:  Format A
- *  Date:          04/24/96
- *  Authors:       Lori Brownell <loribr@microsoft.com>
- *                 K.D. Chang    <a-kchang@microsoft.com>
- * @package squirrelmail
- * @subpackage decode
- */
-
-/**
- * Decode cp10081(MacTurkish) encoded string
- * @param string $string Encoded string
- * @return string $string Decoded string
- */
-function charset_decode_cp10081 ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'x-mac-turkish')
-        return $string;
-
-    /* Only do the slow convert if there are 8-bit characters */
-    /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */
-    if (! ereg("[\200-\237]", $string) and ! ereg("[\241-\377]", $string) )
-        return $string;
-
-    $cp10081 = array(
-       "\0x80" => '&#196;',
-       "\0x81" => '&#197;',
-       "\0x82" => '&#199;',
-       "\0x83" => '&#201;',
-       "\0x84" => '&#209;',
-       "\0x85" => '&#214;',
-       "\0x86" => '&#220;',
-       "\0x87" => '&#225;',
-       "\0x88" => '&#224;',
-       "\0x89" => '&#226;',
-       "\0x8A" => '&#228;',
-       "\0x8B" => '&#227;',
-       "\0x8C" => '&#229;',
-       "\0x8D" => '&#231;',
-       "\0x8E" => '&#233;',
-       "\0x8F" => '&#232;',
-       "\0x90" => '&#234;',
-       "\0x91" => '&#235;',
-       "\0x92" => '&#237;',
-       "\0x93" => '&#236;',
-       "\0x94" => '&#238;',
-       "\0x95" => '&#239;',
-       "\0x96" => '&#241;',
-       "\0x97" => '&#243;',
-       "\0x98" => '&#242;',
-       "\0x99" => '&#244;',
-       "\0x9A" => '&#246;',
-       "\0x9B" => '&#245;',
-       "\0x9C" => '&#250;',
-       "\0x9D" => '&#249;',
-       "\0x9E" => '&#251;',
-       "\0x9F" => '&#252;',
-       "\0xA0" => '&#8224;',
-       "\0xA1" => '&#176;',
-       "\0xA2" => '&#162;',
-       "\0xA3" => '&#163;',
-       "\0xA4" => '&#167;',
-       "\0xA5" => '&#8226;',
-       "\0xA6" => '&#182;',
-       "\0xA7" => '&#223;',
-       "\0xA8" => '&#174;',
-       "\0xA9" => '&#169;',
-       "\0xAA" => '&#8482;',
-       "\0xAB" => '&#180;',
-       "\0xAC" => '&#168;',
-       "\0xAD" => '&#8800;',
-       "\0xAE" => '&#198;',
-       "\0xAF" => '&#216;',
-       "\0xB0" => '&#8734;',
-       "\0xB1" => '&#177;',
-       "\0xB2" => '&#8804;',
-       "\0xB3" => '&#8805;',
-       "\0xB4" => '&#165;',
-       "\0xB5" => '&#181;',
-       "\0xB6" => '&#8706;',
-       "\0xB7" => '&#8721;',
-       "\0xB8" => '&#8719;',
-       "\0xB9" => '&#960;',
-       "\0xBA" => '&#8747;',
-       "\0xBB" => '&#170;',
-       "\0xBC" => '&#186;',
-       "\0xBD" => '&#8486;',
-       "\0xBE" => '&#230;',
-       "\0xBF" => '&#248;',
-       "\0xC0" => '&#191;',
-       "\0xC1" => '&#161;',
-       "\0xC2" => '&#172;',
-       "\0xC3" => '&#8730;',
-       "\0xC4" => '&#402;',
-       "\0xC5" => '&#8776;',
-       "\0xC6" => '&#8710;',
-       "\0xC7" => '&#171;',
-       "\0xC8" => '&#187;',
-       "\0xC9" => '&#8230;',
-       "\0xCA" => '&#160;',
-       "\0xCB" => '&#192;',
-       "\0xCC" => '&#195;',
-       "\0xCD" => '&#213;',
-       "\0xCE" => '&#338;',
-       "\0xCF" => '&#339;',
-       "\0xD0" => '&#8211;',
-       "\0xD1" => '&#8212;',
-       "\0xD2" => '&#8220;',
-       "\0xD3" => '&#8221;',
-       "\0xD4" => '&#8216;',
-       "\0xD5" => '&#8217;',
-       "\0xD6" => '&#247;',
-       "\0xD7" => '&#9674;',
-       "\0xD8" => '&#255;',
-       "\0xD9" => '&#376;',
-       "\0xDA" => '&#286;',
-       "\0xDB" => '&#287;',
-       "\0xDC" => '&#304;',
-       "\0xDD" => '&#305;',
-       "\0xDE" => '&#350;',
-       "\0xDF" => '&#351;',
-       "\0xE0" => '&#8225;',
-       "\0xE1" => '&#183;',
-       "\0xE2" => '&#8218;',
-       "\0xE3" => '&#8222;',
-       "\0xE4" => '&#8240;',
-       "\0xE5" => '&#194;',
-       "\0xE6" => '&#202;',
-       "\0xE7" => '&#193;',
-       "\0xE8" => '&#203;',
-       "\0xE9" => '&#200;',
-       "\0xEA" => '&#205;',
-       "\0xEB" => '&#206;',
-       "\0xEC" => '&#207;',
-       "\0xED" => '&#204;',
-       "\0xEE" => '&#211;',
-       "\0xEF" => '&#212;',
-       "\0xF0" => '&#65535;',
-       "\0xF1" => '&#210;',
-       "\0xF2" => '&#218;',
-       "\0xF3" => '&#219;',
-       "\0xF4" => '&#217;',
-       "\0xF5" => '&#65535;',
-       "\0xF6" => '&#710;',
-       "\0xF7" => '&#732;',
-       "\0xF8" => '&#175;',
-       "\0xF9" => '&#728;',
-       "\0xFA" => '&#729;',
-       "\0xFB" => '&#730;',
-       "\0xFC" => '&#184;',
-       "\0xFD" => '&#733;',
-       "\0xFE" => '&#731;',
-       "\0xFF" => '&#711;'
-   );
-
-    $string = str_replace(array_keys($cp10081), array_values($cp10081), $string);
-
-    return $string;
-}
-?>
similarity index 95%
rename from functions/decode/iso8859-1.php
rename to functions/decode/iso_8859_1.php
index 5bbe7430b78a3806f8b2efa32a63abbe12fba2f6..d1c9a399b357eb4bd7008eef2b611e076a666267 100644 (file)
@@ -17,7 +17,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_1 ($string) {
+function charset_decode_iso_8859_1 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-1')
similarity index 98%
rename from functions/decode/iso8859-10.php
rename to functions/decode/iso_8859_10.php
index 655b1247bd147b1b17f28d9f554ea58497c8ae86..355d215db06c5fe00f041a47a5affa718f57e4da 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_10 ($string) {
+function charset_decode_iso_8859_10 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-10')
similarity index 98%
rename from functions/decode/iso8859-11.php
rename to functions/decode/iso_8859_11.php
index 7d34f72d5c2c6acb9278366cf1a9651eba3a2f1b..1bfce757ab12686c05206df75b08fb6af376d26d 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string 
  */
-function charset_decode_iso8859_11 ($string) {
+function charset_decode_iso_8859_11 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-11')
similarity index 98%
rename from functions/decode/iso8859-13.php
rename to functions/decode/iso_8859_13.php
index 475a5f06ca85957c0fd226ad67d0d46659f6159b..abbe950332839a9f9b4e7b0a5b50bac853771cbe 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_13 ($string) {
+function charset_decode_iso_8859_13 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-13')
similarity index 98%
rename from functions/decode/iso8859-14.php
rename to functions/decode/iso_8859_14.php
index 2203fc07903469ab9fb3b2745a63b5ee1734beb8..a76707dfb43633a137049c5280e73766ebdbe8ae 100644 (file)
@@ -45,7 +45,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string 
  */
-function charset_decode_iso8859_14 ($string) {
+function charset_decode_iso_8859_14 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-14')
similarity index 98%
rename from functions/decode/iso8859-15.php
rename to functions/decode/iso_8859_15.php
index af83a572dc6fe7b6922a8faa7d3e177c1bf45abf..87efd2a67b7f15535dc7c5f650891341a46fe83d 100644 (file)
@@ -45,7 +45,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_15 ($string) {
+function charset_decode_iso_8859_15 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-15')
similarity index 98%
rename from functions/decode/iso8859-16.php
rename to functions/decode/iso_8859_16.php
index f5e969199df4eb2e3fbacc96846d8c81549c6fdd..8fcc20e77d58901b0f229ec2c1c1c1d156a30b63 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_16 ($string) {
+function charset_decode_iso_8859_16 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-16')
similarity index 98%
rename from functions/decode/iso8859-2.php
rename to functions/decode/iso_8859_2.php
index 1dd5c6ad9899d0e62ea78f6975e336cb7b8185fb..9ab9e411101cbd1d18bb9714cd9a672cf7b1d7b0 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_2 ($string) {
+function charset_decode_iso_8859_2 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-2')
similarity index 98%
rename from functions/decode/iso8859-3.php
rename to functions/decode/iso_8859_3.php
index eb408910e3a9bdd32c7d5b07cef932c6aeaa80ae..f548bfd39218f7a9a2db0d18519dcad1b62d279b 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_3 ($string) {
+function charset_decode_iso_8859_3 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-3')
similarity index 98%
rename from functions/decode/iso8859-4.php
rename to functions/decode/iso_8859_4.php
index e2b0247ed59603a441b75e3261610957d92a71c5..2dfefb2b306a98b4bf6b19e5bbd6aa2221b1708a 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_4 ($string) {
+function charset_decode_iso_8859_4 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-4')
similarity index 98%
rename from functions/decode/iso8859-5.php
rename to functions/decode/iso_8859_5.php
index 7c3ae2b33a23215292b0983ab7ea1114308efb56..706b29f0fbc27e04b54d207d9c6873961e023c9a 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_5 ($string) {
+function charset_decode_iso_8859_5 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-5')
similarity index 98%
rename from functions/decode/iso8859-6.php
rename to functions/decode/iso_8859_6.php
index c67dbf27baf2541e0e837ee7daa3204c141ad947..f7ae8321861e0f83aac62711fbebf7073d335d31 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_6 ($string) {
+function charset_decode_iso_8859_6 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-6')
similarity index 98%
rename from functions/decode/iso8859-7.php
rename to functions/decode/iso_8859_7.php
index e9d90fc5363be57da0a0a0e3a0f4d562640772c4..9ee8ea81e4e1881ba1473715c5152f43b1147963 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_7 ($string) {
+function charset_decode_iso_8859_7 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso-8859-7')
similarity index 98%
rename from functions/decode/iso8859-8.php
rename to functions/decode/iso_8859_8.php
index 439d4b006959d1bde8c13f303df9cae9f15af933..3fa4d6dafd964b709809b3ff2192405241f0f025 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string $string Decoded string
  */
-function charset_decode_iso8859_8 ($string) {
+function charset_decode_iso_8859_8 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso8859-8')
similarity index 98%
rename from functions/decode/iso8859-9.php
rename to functions/decode/iso_8859_9.php
index 41b41b35eeef921a230826dfe635a5522c62421d..7e54b9a661f8c0b8b91dc9596443caf54f3cc317 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string Decoded string
  */
-function charset_decode_iso8859_9 ($string) {
+function charset_decode_iso_8859_9 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'iso8859-9')
similarity index 99%
rename from functions/decode/koi8-r.php
rename to functions/decode/koi8_r.php
index 84628d813d35c7e47fccf8717437643a6384e736..0842639428e1e2dda10b0d60c40a9fcdd466a336 100644 (file)
@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @return string Decoded string
  */
-function charset_decode_koi8r ($string) {
+function charset_decode_koi8_r ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'koi8-r')
similarity index 99%
rename from functions/decode/koi8-u.php
rename to functions/decode/koi8_u.php
index f01ce9e566cae1caf6c37fdf6e3789a4881d476b..9a7f058b002c5ccf645a53c69ff263d1408c55ee 100644 (file)
@@ -48,7 +48,7 @@
  * @param string $string Encoded string
  * @return string Decoded string
  */
-function charset_decode_koi8u ($string) {
+function charset_decode_koi8_u ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'koi8-u')
similarity index 98%
rename from functions/decode/tis620.php
rename to functions/decode/tis_620.php
index 53183175fff09f6f19334852c98bc872fff6ba47..c817e9ffd5823878a37dc99e877962a8679b9df2 100644 (file)
@@ -43,7 +43,7 @@
  * @param string $string Encoded string
  * @return string Decoded string
  */
-function charset_decode_tis620 ($string) {
+function charset_decode_tis_620 ($string) {
     global $default_charset;
 
     if (strtolower($default_charset) == 'tis-620')
similarity index 97%
rename from functions/decode/utf-8.php
rename to functions/decode/utf_8.php
index 72f2a160102b7d4c125e4df0fbe4bab0cd4ba01f..df87dcacb8d504a77281faeb4d1b23855a1e73fe 100644 (file)
@@ -26,7 +26,7 @@
  * @param string $string Encoded string
  * @return string Decoded string
  */
-function charset_decode_utf8 ($string) {
+function charset_decode_utf_8 ($string) {
   global $default_charset;
 
     if (strtolower($default_charset) == 'utf-8')