Jelajahi Sumber

Makes managing decoding easier. Mac decoding moved to separate cvs module

tokul 21 tahun lalu
induk
melakukan
d02e301fac

+ 0 - 177
functions/decode/cp10000.php

@@ -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;
-}
-?>

+ 0 - 177
functions/decode/cp10006.php

@@ -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;
-}
-?>

+ 0 - 177
functions/decode/cp10007.php

@@ -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;
-}
-?>

+ 0 - 176
functions/decode/cp10017.php

@@ -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;
-}
-?>

+ 0 - 177
functions/decode/cp10029.php

@@ -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;
-}
-?>

+ 0 - 177
functions/decode/cp10079.php

@@ -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;
-}
-?>

+ 0 - 177
functions/decode/cp10081.php

@@ -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;
-}
-?>

+ 1 - 1
functions/decode/iso8859-1.php → functions/decode/iso_8859_1.php

@@ -17,7 +17,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_1 ($string) {
+function charset_decode_iso_8859_1 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-1')
     if (strtolower($default_charset) == 'iso-8859-1')

+ 1 - 1
functions/decode/iso8859-10.php → functions/decode/iso_8859_10.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_10 ($string) {
+function charset_decode_iso_8859_10 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-10')
     if (strtolower($default_charset) == 'iso-8859-10')

+ 1 - 1
functions/decode/iso8859-11.php → functions/decode/iso_8859_11.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string 
  * @return string $string Decoded string 
  */
  */
-function charset_decode_iso8859_11 ($string) {
+function charset_decode_iso_8859_11 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-11')
     if (strtolower($default_charset) == 'iso-8859-11')

+ 1 - 1
functions/decode/iso8859-13.php → functions/decode/iso_8859_13.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_13 ($string) {
+function charset_decode_iso_8859_13 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-13')
     if (strtolower($default_charset) == 'iso-8859-13')

+ 1 - 1
functions/decode/iso8859-14.php → functions/decode/iso_8859_14.php

@@ -45,7 +45,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string 
  * @return string $string Decoded string 
  */
  */
-function charset_decode_iso8859_14 ($string) {
+function charset_decode_iso_8859_14 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-14')
     if (strtolower($default_charset) == 'iso-8859-14')

+ 1 - 1
functions/decode/iso8859-15.php → functions/decode/iso_8859_15.php

@@ -45,7 +45,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_15 ($string) {
+function charset_decode_iso_8859_15 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-15')
     if (strtolower($default_charset) == 'iso-8859-15')

+ 1 - 1
functions/decode/iso8859-16.php → functions/decode/iso_8859_16.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_16 ($string) {
+function charset_decode_iso_8859_16 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-16')
     if (strtolower($default_charset) == 'iso-8859-16')

+ 1 - 1
functions/decode/iso8859-2.php → functions/decode/iso_8859_2.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_2 ($string) {
+function charset_decode_iso_8859_2 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-2')
     if (strtolower($default_charset) == 'iso-8859-2')

+ 1 - 1
functions/decode/iso8859-3.php → functions/decode/iso_8859_3.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_3 ($string) {
+function charset_decode_iso_8859_3 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-3')
     if (strtolower($default_charset) == 'iso-8859-3')

+ 1 - 1
functions/decode/iso8859-4.php → functions/decode/iso_8859_4.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_4 ($string) {
+function charset_decode_iso_8859_4 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-4')
     if (strtolower($default_charset) == 'iso-8859-4')

+ 1 - 1
functions/decode/iso8859-5.php → functions/decode/iso_8859_5.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_5 ($string) {
+function charset_decode_iso_8859_5 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-5')
     if (strtolower($default_charset) == 'iso-8859-5')

+ 1 - 1
functions/decode/iso8859-6.php → functions/decode/iso_8859_6.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_6 ($string) {
+function charset_decode_iso_8859_6 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-6')
     if (strtolower($default_charset) == 'iso-8859-6')

+ 1 - 1
functions/decode/iso8859-7.php → functions/decode/iso_8859_7.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_7 ($string) {
+function charset_decode_iso_8859_7 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso-8859-7')
     if (strtolower($default_charset) == 'iso-8859-7')

+ 1 - 1
functions/decode/iso8859-8.php → functions/decode/iso_8859_8.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string $string Decoded string
  * @return string $string Decoded string
  */
  */
-function charset_decode_iso8859_8 ($string) {
+function charset_decode_iso_8859_8 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso8859-8')
     if (strtolower($default_charset) == 'iso8859-8')

+ 1 - 1
functions/decode/iso8859-9.php → functions/decode/iso_8859_9.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string Decoded string
  * @return string Decoded string
  */
  */
-function charset_decode_iso8859_9 ($string) {
+function charset_decode_iso_8859_9 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'iso8859-9')
     if (strtolower($default_charset) == 'iso8859-9')

+ 0 - 0
functions/decode/iso-ir-111.php → functions/decode/iso_ir_111.php


+ 1 - 1
functions/decode/koi8-r.php → functions/decode/koi8_r.php

@@ -44,7 +44,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string Decoded string
  * @return string Decoded string
  */
  */
-function charset_decode_koi8r ($string) {
+function charset_decode_koi8_r ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'koi8-r')
     if (strtolower($default_charset) == 'koi8-r')

+ 1 - 1
functions/decode/koi8-u.php → functions/decode/koi8_u.php

@@ -48,7 +48,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string Decoded string
  * @return string Decoded string
  */
  */
-function charset_decode_koi8u ($string) {
+function charset_decode_koi8_u ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'koi8-u')
     if (strtolower($default_charset) == 'koi8-u')

+ 1 - 1
functions/decode/tis620.php → functions/decode/tis_620.php

@@ -43,7 +43,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string Decoded string
  * @return string Decoded string
  */
  */
-function charset_decode_tis620 ($string) {
+function charset_decode_tis_620 ($string) {
     global $default_charset;
     global $default_charset;
 
 
     if (strtolower($default_charset) == 'tis-620')
     if (strtolower($default_charset) == 'tis-620')

+ 1 - 1
functions/decode/utf-8.php → functions/decode/utf_8.php

@@ -26,7 +26,7 @@
  * @param string $string Encoded string
  * @param string $string Encoded string
  * @return string Decoded string
  * @return string Decoded string
  */
  */
-function charset_decode_utf8 ($string) {
+function charset_decode_utf_8 ($string) {
   global $default_charset;
   global $default_charset;
 
 
     if (strtolower($default_charset) == 'utf-8')
     if (strtolower($default_charset) == 'utf-8')