aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/utf/data/recode_basic.php
blob: 02e44d3e0d1b241c8635d7b2b47478464e1a745a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
-rw-r--r--
perl-install/ChangeLog372
1 files changed, 371 insertions, 1 deletions
diff --git a/perl-install/ChangeLog b/perl-install/ChangeLog
index 010e9dcb3..dfc87b69e 100644
--- a/perl-install/ChangeLog
+++ b/perl-install/ChangeLog
@@ -1,3 +1,373 @@
+2004/09/20 Olivier Blin <oblin at mandrakesoft.com>
+
+ * standalone/net_monitor: remove connection time timer if connection fails
+ (fix #11590)
+
+ * network/adsl.pm (adsl_conf_backend) use avmadsl option for capi cards to
+ use settings
+ generated by drdsl
+
+ * network/netconnect.pm: do not write config two times for lan connections
+ move "Start at boot" step for lan-like adsl/cable connections
+
+ * network/network.pm: more zeroconf fixes (zcip isn't a service, stop
+ tmdns service if
+ zeroconf is disabled, check tmdns init file in prefix/etc)
+
+2004/09/20 Pablo Saratxaga <pablo at mandrakesoft.com>
+
+ * share/po/da.po: merged with current pot file
+
+2004/09/20 Pixel <pixel at mandrakesoft.com>
+
+ * diskdrake/interactive.pm, devices.pm, fs/type.pm, fs/mount_options.pm,
+ install_steps.pm, standalone/drakupdate_fstab,
+ install_steps_interactive.pm, partition_table.pm:
+ - add field {part_number} for partitions
+ (handle it in subpart_from_wild_device_name(), partition_table::read())
+ - create migrate_device_names() to handle the change of device names
+ when
+ changing kernel&modules (eg: hde->hda or hda->sda)
+ - change prototype of install_any::use_root_part()
+ (prefix is dropped, optional $in is added)
+ - create fs::type::can_be_this_fs_type() and use it
+ - create devices::part_number() and devices::part_prefix() and use
+ them
+
+ * fs.pm: perl_checker compliance
+ - add field {part_number} for partitions
+ (handle it in subpart_from_wild_device_name(), partition_table::read())
+ - create migrate_device_names() to handle the change of device names
+ when
+ changing kernel&modules (eg: hde->hda or hda->sda)
+ - change prototype of install_any::use_root_part()
+ (prefix is dropped, optional $in is added)
+ - create fs::type::can_be_this_fs_type() and use it
+ - create devices::part_number() and devices::part_prefix() and use
+ them
+ - don't use fs::get_info_from_fstab() in install_any::use_root_part()
+ to be able to handle
+ renamed devices
+ - fs::get_info_from_fstab() doesn't take a prefix anymore
+ - small perl_checker fix in install_any.pm
+
+ * install_any.pm:
+ - add field {part_number} for partitions
+ (handle it in subpart_from_wild_device_name(), partition_table::read())
+ - create migrate_device_names() to handle the change of device names
+ when
+ changing kernel&modules (eg: hde->hda or hda->sda)
+ - change prototype of install_any::use_root_part()
+ (prefix is dropped, optional $in is added)
+ - create fs::type::can_be_this_fs_type() and use it
+ - create devices::part_number() and devices::part_prefix() and use
+ them
+ - don't use fs::get_info_from_fstab() in install_any::use_root_part()
+ to be able to handle
+ renamed devices
+ - fs::get_info_from_fstab() doesn't take a prefix anymore
+ - small perl_checker fix in install_any.pm
+
+ * standalone/drakboot, network/tools.pm, standalone/diskdrake,
+ standalone/bootloader-config:
+ - don't use fs::get_info_from_fstab() in install_any::use_root_part()
+ to be able to handle
+ renamed devices
+ - fs::get_info_from_fstab() doesn't take a prefix anymore
+ - small perl_checker fix in install_any.pm
+
+2004/09/20 Rafael Garcia-Suarez <rgarciasuarez at mandrakesoft.com>
+
+ * share/po/fr.po: Fix typo
+
+ * pkgs.pm: Fix supplementary CDs with any kind of media
+
+ * install_any.pm: Remove no longer necessary hack.
+
+2004/09/20 Thierry Vignaud <tvignaud at mandrakesoft.com>
+
+ * standalone/drakups (add_device_wizard) default to automatic detection
+
+ * share/po/br.po: update
+
+2004/09/19 Funda Wang <fundawang at linux.net.cn>
+
+ * share/po/zh_CN.po: Updated Simplified Chinese translation
+
+2004/09/19 (Hilbert) <h at mandrake.org>
+
+ * share/po/zh_TW.po: DrakX-zh_TW: 1210
+ Circular mounts
+
+2004/09/19 Keld Jørn Simonsen <keld at dkuug.dk>
+
+ * share/po/da.po: updates (ugh!)
+ gi/perl-install/share/po/da.po
+ Updates
+ gi/perl-install/share/po/da.po
+ updates
+ gi/perl-install/share/po/da.po
+
+2004/09/18 Keld Jørn Simonsen <keld at dkuug.dk>
+
+ * share/po/da.po: updates
+ gi/perl-install/share/po/da.po
+ updates
+ gi/perl-install/share/po/da.po
+ updates
+ gi/perl-install/share/po/da.po
+
+2004/09/17 Keld Jørn Simonsen <keld at dkuug.dk>
+
+ * share/po/da.po: updates
+ gi/perl-install/share/po/da.po
+ Updates
+ soft/drakbt/po/da.po soft/drakpxelinux/po/da.po
+ gi/perl-install/share/po/da.po
+
+2004/09/17 Olivier Blin <oblin at mandrakesoft.com>
+
+ * standalone/service_harddrake: update iftab when new ethernet devices are
+ detected
+ probe firewire and pcmcia network devices too
+
+ * network/ethernet.pm (configure_eth_aliases) don't write aliases for
+ pcmcia cards but
+ remove them, or else the pcmcia service won't be started correctly
+ (the ethernet module being loaded, pcmcia_core would be loaded too,
+ and the pcmcia service would think it is already started ...)
+ (configure_eth_aliases) kill code that can't do anything good
+ (remove_alias isn't intended to be used with the module name)
+
+ * network/adsl.pm (adsl_conf_backend) make sure the speedtch kernel module
+ won't be hidden
+
+ * network/network.pm (configureNetwork2) really enable zeroconf if
+ zeroconf is requested
+ (configureNetwork2) write blank zeroconf hostname if zeroconf is
+ disabled, else drakconnect will assume it is enabled
+ (configureNetwork2) use services do disable zeroconf, do not disable
+ if it doesn't exist (to avoid warnings in console)
+
+2004/09/17 Pixel <pixel at mandrakesoft.com>
+
+ * partition_table/dos.pm, partition_table/raw.pm, fsedit.pm: try to get
+ geometry from EDD
+
+2004/09/17 Thierry Vignaud <tvignaud at mandrakesoft.com>
+
+ * standalone/drakups: perl_checker cleanup
+ remove debug message :-)
+ refresh UPS list when adding a new UPS though the add wizard
+ (add_device_wizard) fix automatically detect/add an UPS
+
+ * share/rpmsrate: install NUT for "American Power Conversion|Back-UPS Pro
+ 500" too
+
+ * drakxtools.spec: 10.1-10mdk
+
+2004/09/16 José JORGE <jjorge at free.fr>
+
+ * share/po/pt.po: jorge
+
+2004/09/16 Olivier Blin <oblin at mandrakesoft.com>
+
+ * network/adsl.pm: stop capi service before new config is written so that
+ capiinit can unload the old driver
+
+ * network/isdn.pm: stop capi service before new config is written so that
+ capiinit can unload the old driver
+ make isdn over capi work again
+
+ * network/netconnect.pm: don't support all slmodem cards, our agreement
+ forbid it :-/
+ do not ask "capidrv or capidrv ?" ...
+ make isdn over capi work again
+
+ * share/rpmsrate: do not install isdn-light, it's unused, unsupported, and
+ breaks
+ isdn4net
+
+ * network/network.pm (read_all_conf) use network::tools to probe
+ connection type
+
+2004/09/16 Pablo Saratxaga <pablo at mandrakesoft.com>
+
+ * share/po/bn.po, share/po/ms.po, share/po/sk.po, share/po/gl.po,
+ share/po/pt_BR.po, share/po/th.po, share/po/et.po, share/po/ja.po,
+ share/po/hr.po, share/po/be.po, share/po/ko.po, share/po/DrakX.pot,
+ share/po/sv.po, share/po/sr.po, share/po/pl.po, share/po/fi.po,
+ share/po/he.po, share/po/ca.po, share/po/da.po, share/po/ar.po,
+ share/po/ltg.po, share/po/nb.po, share/po/ky.po, share/po/uz.po,
+ share/po/ro.po, share/po/zh_TW.po, share/po/zh_CN.po,
+ share/po/sr@Latn.po, share/po/sq.po, share/po/it.po, share/po/eu.po,
+ share/po/lv.po, share/po/hu.po, share/po/fa.po, share/po/id.po,
+ share/po/ru.po, share/po/br.po, share/po/sl.po, share/po/nn.po,
+ share/po/tr.po, share/po/mt.po, share/po/ga.po, share/po/mn.po,
+ share/po/uk.po, share/po/am.po, share/po/lt.po, share/po/cy.po,
+ share/po/tg.po, share/po/bs.po, share/po/fur.po, share/po/mk.po,
+ share/po/wa.po, share/po/is.po, share/po/hi.po, share/po/af.po,
+ share/po/az.po, share/po/pt.po, share/po/vi.po, share/po/fr.po,
+ share/po/ta.po, share/po/nl.po, share/po/de.po, share/po/tl.po,
+ share/po/eo.po, share/po/bg.po, share/po/cs.po, share/po/el.po,
+ share/po/uz@Latn.po: updated pot file
+
+ * share/po/es.po: fixed typo
+ updated pot file
+
+ * network/netconnect.pm: fixed typo (no spaces before question marks in
+ English)
+
+2004/09/16 Pixel <pixel at mandrakesoft.com>
+
+ * standalone/draksplash2: add as a comment the "convert" command
+ imagemagick can do what gimp can't: reduce the number of colors while
+ using a fixed treedepth different than 24bpp (we want 6*3 = 18bpp)
+ display the stepping effect
+
+ * detect_devices.pm: C3 has "cpu family" == 6, so now also checking that
+ cmov flag is available to say we have a i686
+
+ * install_steps_gtk.pm: on a test here, a "Server died" occured whereas
+ the server is running.
+ i think it can occur if the server is in fact not even started. Trying
+ to handle this case
+
+2004/09/16 rcasha
+
+ * share/po/mt.po: var
+
+2004/09/16 Rafael Garcia-Suarez <rgarciasuarez at mandrakesoft.com>
+
+ * install_steps_gtk.pm: Kludgy fix for bug 11558 : sometimes when
+ restarting the installer at the
+ step where partitions are read, it'll be needed to reaload the rpmsrate
+ and compssUsers.pl to avoid a crash a bit later.
+
+ * install_any.pm: Kludgy fix for bug 11558 : sometimes when restarting the
+ installer at the
+ step where partitions are read, it'll be needed to reaload the rpmsrate
+ and compssUsers.pl to avoid a crash a bit later.
+ Better retry on error handling for supplementary media
+
+ * share/list: Include locale.pm in the install, since ugtk2 now uses it.
+
+2004/09/16 Thierry Vignaud <tvignaud at mandrakesoft.com>
+
+ * share/po/br.po: update
+ update
+
+ * standalone/drakups (add_device_wizard) fix device list in wizard
+ perl_checker cleanups
+
+2004/09/15 Olivier Blin <oblin at mandrakesoft.com>
+
+ * network/adsl.pm: do not add prefix in path given to ensure_is_installed
+ ! (i.e. replace untested code with untested code), fix #11547 and more
+ add comment
+ (adsl_conf_backend) don't create empty pppoe.conf if the package isn't
+ installed
+ load modules and run start programs in standalone too, so that it will
+ work even if the packages have just been installed
+
+ * network/netconnect.pm: install unicorn-kernel package if available
+ add "Unlisted - edit manually" entry in modem provider list (fix #11549)
+ do not add prefix in path given to ensure_is_installed ! (i.e. replace
+ untested code with untested code), fix #11547 and more
+
+ * detect_devices.pm (getBewan) use more permissive regexp for PCI modem,
+ description in
+ pcitable may change
+
+ * network/isdn.pm: do not add prefix in path given to ensure_is_installed
+ ! (i.e. replace untested code with untested code), fix #11547 and more
+
+2004/09/15 Pablo Saratxaga <pablo at mandrakesoft.com>
+
+ * share/po/uz.po, share/po/uz@Latn.po: updated Uzbek files
+
+ * share/po/it.po: updated Italian file
+
+ * keyboard.pm: removed "caps:shift" it never fully solved the problem of
+ turkish keyboards
+ anyway; and a much better solution is done on newer keyboard maps
+ in xorg package.
+
+2004/09/15 Pixel <pixel at mandrakesoft.com>
+
+ * fsedit.pm: explicit scalar false value (otherwise it gives () in list
+ context)
+
+ * bootloader.pm: no need to require pkgs (and it makes bootloader-config
+ some break when removing entries)
+
+2004/09/15 Stew Benedict <sbenedict at mandrakesoft.com>
+
+ * standalone/drakbackup: Use radio buttons in media selection (wildman).
+ perl_checker compliance.
+
+2004/09/15 Thierry Vignaud <tvignaud at mandrakesoft.com>
+
+ * standalone/drakbackup (interactive_mode_box) better make parameter
+ optionnal
+
+ * share/po/bn.po, share/po/ms.po, share/po/gl.po, share/po/th.po,
+ share/po/et.po, share/po/hr.po, network/netconnect.pm, share/po/be.po,
+ share/po/ko.po, share/po/pl.po, share/po/fi.po, share/po/he.po,
+ share/po/ca.po, share/po/ar.po, share/po/ltg.po, share/po/nb.po,
+ share/po/uz.po, share/po/ro.po, share/po/zh_TW.po, share/po/zh_CN.po,
+ share/po/it.po, share/po/eu.po, share/po/es.po, network/adsl.pm,
+ share/po/lv.po, share/po/hu.po, share/po/ru.po, share/po/sl.po,
+ share/po/nn.po, share/po/mt.po, share/po/ga.po, share/po/uk.po,
+ share/po/mn.po, share/po/am.po, share/po/lt.po, share/po/tg.po,
+ share/po/bs.po, share/po/fur.po, share/po/wa.po, share/po/hi.po,
+ share/po/pt.po, share/po/vi.po, share/po/fr.po, share/po/ta.po,
+ share/po/nl.po, share/po/de.po, share/po/eo.po, share/po/cs.po,
+ share/po/uz@Latn.po: fix PPPoA case
+
+ * modules/interactive.pm (load_category__prompt) fix spacing in module
+ list
+
+ * share/po/br.po: update
+ update
+ update
+ update
+
+ * drakxtools.spec: last minute changes in 10.1-9mdk
+ 10.1-9mdk
+ fix typo in 10.1-6mdk's and 10.1-7mdk's changelog
+
+ * share/po/sk.po, share/po/pt_BR.po, share/po/ja.po, share/po/sv.po,
+ share/po/sr.po, share/po/da.po, share/po/ky.po, share/po/sr@Latn.po,
+ share/po/sq.po, share/po/fa.po, share/po/id.po, share/po/tr.po,
+ share/po/mk.po, share/po/is.po, share/po/af.po, share/po/az.po,
+ share/po/tl.po, share/po/el.po, share/po/bg.po: unfuzzy a few sagem
+ strings
+ fix PPPoA case
+
+ * share/po/cy.po: update (note that my welsh needs to be reviewed as well
+ as my 2004/08/13 update)
+ fix PPPoA case
+
+ * ugtk2.pm (get_text_coord) fix wrapping for CJ when mixed with english
+ strings
+ (eg: cuted "Mandrakesoft" word)
+ (get_text_coord) kill unused character
+
+ * install_steps_gtk.pm (installPackages) kill unused variable
+
+2004/09/15 vljubovic
+
+ * share/po/bs.po: A small fix
+
+2004/09/15 Warly <warly at mandrakesoft.com>
+
+ * share/rpmsrate: add dkms-minimal in INSTALL
+
+2004/09/15 Youcef Rabah Rahal <rahal at arabeyes.org>
+
+ * share/po/ar.po: Arabic translation
+
2004/09/15 Pablo Saratxaga <pablo at mandrakesoft.com>
* share/po/uz.po, share/po/uz@Latn.po: updated Uzbek files
@@ -39279,7 +39649,7 @@
* Makefile.config: remove dir security
- * proxy.pm: add $Id: ChangeLog,v 1.970 2004/09/14 10:02:11 prigaux Exp $
+ * proxy.pm: add $Id: ChangeLog,v 1.971 2004/09/15 00:45:00 prigaux Exp $
* interactive/gtk.pm: use my_gtk {isWizard} and {isEmbedded} which are
more accurate than
885'>885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543
<?php
function iso_8859_1($string)
{
	return utf8_encode($string);
}

function iso_8859_2($string)
{
	static $transform = array(
		"\x80" => "\xC2\x80",
		"\x81" => "\xC2\x81",
		"\x82" => "\xC2\x82",
		"\x83" => "\xC2\x83",
		"\x84" => "\xC2\x84",
		"\x85" => "\xC2\x85",
		"\x86" => "\xC2\x86",
		"\x87" => "\xC2\x87",
		"\x88" => "\xC2\x88",
		"\x89" => "\xC2\x89",
		"\x8A" => "\xC2\x8A",
		"\x8B" => "\xC2\x8B",
		"\x8C" => "\xC2\x8C",
		"\x8D" => "\xC2\x8D",
		"\x8E" => "\xC2\x8E",
		"\x8F" => "\xC2\x8F",
		"\x90" => "\xC2\x90",
		"\x91" => "\xC2\x91",
		"\x92" => "\xC2\x92",
		"\x93" => "\xC2\x93",
		"\x94" => "\xC2\x94",
		"\x95" => "\xC2\x95",
		"\x96" => "\xC2\x96",
		"\x97" => "\xC2\x97",
		"\x98" => "\xC2\x98",
		"\x99" => "\xC2\x99",
		"\x9A" => "\xC2\x9A",
		"\x9B" => "\xC2\x9B",
		"\x9C" => "\xC2\x9C",
		"\x9D" => "\xC2\x9D",
		"\x9E" => "\xC2\x9E",
		"\x9F" => "\xC2\x9F",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xC4\x84",
		"\xA2" => "\xCB\x98",
		"\xA3" => "\xC5\x81",
		"\xA4" => "\xC2\xA4",
		"\xA5" => "\xC4\xBD",
		"\xA6" => "\xC5\x9A",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xC2\xA8",
		"\xA9" => "\xC5\xA0",
		"\xAA" => "\xC5\x9E",
		"\xAB" => "\xC5\xA4",
		"\xAC" => "\xC5\xB9",
		"\xAD" => "\xC2\xAD",
		"\xAE" => "\xC5\xBD",
		"\xAF" => "\xC5\xBB",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC4\x85",
		"\xB2" => "\xCB\x9B",
		"\xB3" => "\xC5\x82",
		"\xB4" => "\xC2\xB4",
		"\xB5" => "\xC4\xBE",
		"\xB6" => "\xC5\x9B",
		"\xB7" => "\xCB\x87",
		"\xB8" => "\xC2\xB8",
		"\xB9" => "\xC5\xA1",
		"\xBA" => "\xC5\x9F",
		"\xBB" => "\xC5\xA5",
		"\xBC" => "\xC5\xBA",
		"\xBD" => "\xCB\x9D",
		"\xBE" => "\xC5\xBE",
		"\xBF" => "\xC5\xBC",
		"\xC0" => "\xC5\x94",
		"\xC1" => "\xC3\x81",
		"\xC2" => "\xC3\x82",
		"\xC3" => "\xC4\x82",
		"\xC4" => "\xC3\x84",
		"\xC5" => "\xC4\xB9",
		"\xC6" => "\xC4\x86",
		"\xC7" => "\xC3\x87",
		"\xC8" => "\xC4\x8C",
		"\xC9" => "\xC3\x89",
		"\xCA" => "\xC4\x98",
		"\xCB" => "\xC3\x8B",
		"\xCC" => "\xC4\x9A",
		"\xCD" => "\xC3\x8D",
		"\xCE" => "\xC3\x8E",
		"\xCF" => "\xC4\x8E",
		"\xD0" => "\xC4\x90",
		"\xD1" => "\xC5\x83",
		"\xD2" => "\xC5\x87",
		"\xD3" => "\xC3\x93",
		"\xD4" => "\xC3\x94",
		"\xD5" => "\xC5\x90",
		"\xD6" => "\xC3\x96",
		"\xD7" => "\xC3\x97",
		"\xD8" => "\xC5\x98",
		"\xD9" => "\xC5\xAE",
		"\xDA" => "\xC3\x9A",
		"\xDB" => "\xC5\xB0",
		"\xDC" => "\xC3\x9C",
		"\xDD" => "\xC3\x9D",
		"\xDE" => "\xC5\xA2",
		"\xDF" => "\xC3\x9F",
		"\xE0" => "\xC5\x95",
		"\xE1" => "\xC3\xA1",
		"\xE2" => "\xC3\xA2",
		"\xE3" => "\xC4\x83",
		"\xE4" => "\xC3\xA4",
		"\xE5" => "\xC4\xBA",
		"\xE6" => "\xC4\x87",
		"\xE7" => "\xC3\xA7",
		"\xE8" => "\xC4\x8D",
		"\xE9" => "\xC3\xA9",
		"\xEA" => "\xC4\x99",
		"\xEB" => "\xC3\xAB",
		"\xEC" => "\xC4\x9B",
		"\xED" => "\xC3\xAD",
		"\xEE" => "\xC3\xAE",
		"\xEF" => "\xC4\x8F",
		"\xF0" => "\xC4\x91",
		"\xF1" => "\xC5\x84",
		"\xF2" => "\xC5\x88",
		"\xF3" => "\xC3\xB3",
		"\xF4" => "\xC3\xB4",
		"\xF5" => "\xC5\x91",
		"\xF6" => "\xC3\xB6",
		"\xF7" => "\xC3\xB7",
		"\xF8" => "\xC5\x99",
		"\xF9" => "\xC5\xAF",
		"\xFA" => "\xC3\xBA",
		"\xFB" => "\xC5\xB1",
		"\xFC" => "\xC3\xBC",
		"\xFD" => "\xC3\xBD",
		"\xFE" => "\xC5\xA3",
		"\xFF" => "\xCB\x99",
	);
	return strtr($string, $transform);
}

function iso_8859_4($string)
{
	static $transform = array(
		"\x80" => "\xC2\x80",
		"\x81" => "\xC2\x81",
		"\x82" => "\xC2\x82",
		"\x83" => "\xC2\x83",
		"\x84" => "\xC2\x84",
		"\x85" => "\xC2\x85",
		"\x86" => "\xC2\x86",
		"\x87" => "\xC2\x87",
		"\x88" => "\xC2\x88",
		"\x89" => "\xC2\x89",
		"\x8A" => "\xC2\x8A",
		"\x8B" => "\xC2\x8B",
		"\x8C" => "\xC2\x8C",
		"\x8D" => "\xC2\x8D",
		"\x8E" => "\xC2\x8E",
		"\x8F" => "\xC2\x8F",
		"\x90" => "\xC2\x90",
		"\x91" => "\xC2\x91",
		"\x92" => "\xC2\x92",
		"\x93" => "\xC2\x93",
		"\x94" => "\xC2\x94",
		"\x95" => "\xC2\x95",
		"\x96" => "\xC2\x96",
		"\x97" => "\xC2\x97",
		"\x98" => "\xC2\x98",
		"\x99" => "\xC2\x99",
		"\x9A" => "\xC2\x9A",
		"\x9B" => "\xC2\x9B",
		"\x9C" => "\xC2\x9C",
		"\x9D" => "\xC2\x9D",
		"\x9E" => "\xC2\x9E",
		"\x9F" => "\xC2\x9F",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xC4\x84",
		"\xA2" => "\xC4\xB8",
		"\xA3" => "\xC5\x96",
		"\xA4" => "\xC2\xA4",
		"\xA5" => "\xC4\xA8",
		"\xA6" => "\xC4\xBB",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xC2\xA8",
		"\xA9" => "\xC5\xA0",
		"\xAA" => "\xC4\x92",
		"\xAB" => "\xC4\xA2",
		"\xAC" => "\xC5\xA6",
		"\xAD" => "\xC2\xAD",
		"\xAE" => "\xC5\xBD",
		"\xAF" => "\xC2\xAF",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC4\x85",
		"\xB2" => "\xCB\x9B",
		"\xB3" => "\xC5\x97",
		"\xB4" => "\xC2\xB4",
		"\xB5" => "\xC4\xA9",
		"\xB6" => "\xC4\xBC",
		"\xB7" => "\xCB\x87",
		"\xB8" => "\xC2\xB8",
		"\xB9" => "\xC5\xA1",
		"\xBA" => "\xC4\x93",
		"\xBB" => "\xC4\xA3",
		"\xBC" => "\xC5\xA7",
		"\xBD" => "\xC5\x8A",
		"\xBE" => "\xC5\xBE",
		"\xBF" => "\xC5\x8B",
		"\xC0" => "\xC4\x80",
		"\xC1" => "\xC3\x81",
		"\xC2" => "\xC3\x82",
		"\xC3" => "\xC3\x83",
		"\xC4" => "\xC3\x84",
		"\xC5" => "\xC3\x85",
		"\xC6" => "\xC3\x86",
		"\xC7" => "\xC4\xAE",
		"\xC8" => "\xC4\x8C",
		"\xC9" => "\xC3\x89",
		"\xCA" => "\xC4\x98",
		"\xCB" => "\xC3\x8B",
		"\xCC" => "\xC4\x96",
		"\xCD" => "\xC3\x8D",
		"\xCE" => "\xC3\x8E",
		"\xCF" => "\xC4\xAA",
		"\xD0" => "\xC4\x90",
		"\xD1" => "\xC5\x85",
		"\xD2" => "\xC5\x8C",
		"\xD3" => "\xC4\xB6",
		"\xD4" => "\xC3\x94",
		"\xD5" => "\xC3\x95",
		"\xD6" => "\xC3\x96",
		"\xD7" => "\xC3\x97",
		"\xD8" => "\xC3\x98",
		"\xD9" => "\xC5\xB2",
		"\xDA" => "\xC3\x9A",
		"\xDB" => "\xC3\x9B",
		"\xDC" => "\xC3\x9C",
		"\xDD" => "\xC5\xA8",
		"\xDE" => "\xC5\xAA",
		"\xDF" => "\xC3\x9F",
		"\xE0" => "\xC4\x81",
		"\xE1" => "\xC3\xA1",
		"\xE2" => "\xC3\xA2",
		"\xE3" => "\xC3\xA3",
		"\xE4" => "\xC3\xA4",
		"\xE5" => "\xC3\xA5",
		"\xE6" => "\xC3\xA6",
		"\xE7" => "\xC4\xAF",
		"\xE8" => "\xC4\x8D",
		"\xE9" => "\xC3\xA9",
		"\xEA" => "\xC4\x99",
		"\xEB" => "\xC3\xAB",
		"\xEC" => "\xC4\x97",
		"\xED" => "\xC3\xAD",
		"\xEE" => "\xC3\xAE",
		"\xEF" => "\xC4\xAB",
		"\xF0" => "\xC4\x91",
		"\xF1" => "\xC5\x86",
		"\xF2" => "\xC5\x8D",
		"\xF3" => "\xC4\xB7",
		"\xF4" => "\xC3\xB4",
		"\xF5" => "\xC3\xB5",
		"\xF6" => "\xC3\xB6",
		"\xF7" => "\xC3\xB7",
		"\xF8" => "\xC3\xB8",
		"\xF9" => "\xC5\xB3",
		"\xFA" => "\xC3\xBA",
		"\xFB" => "\xC3\xBB",
		"\xFC" => "\xC3\xBC",
		"\xFD" => "\xC5\xA9",
		"\xFE" => "\xC5\xAB",
		"\xFF" => "\xCB\x99",
	);
	return strtr($string, $transform);
}

function iso_8859_7($string)
{
	static $transform = array(
		"\x80" => "\xC2\x80",
		"\x81" => "\xC2\x81",
		"\x82" => "\xC2\x82",
		"\x83" => "\xC2\x83",
		"\x84" => "\xC2\x84",
		"\x85" => "\xC2\x85",
		"\x86" => "\xC2\x86",
		"\x87" => "\xC2\x87",
		"\x88" => "\xC2\x88",
		"\x89" => "\xC2\x89",
		"\x8A" => "\xC2\x8A",
		"\x8B" => "\xC2\x8B",
		"\x8C" => "\xC2\x8C",
		"\x8D" => "\xC2\x8D",
		"\x8E" => "\xC2\x8E",
		"\x8F" => "\xC2\x8F",
		"\x90" => "\xC2\x90",
		"\x91" => "\xC2\x91",
		"\x92" => "\xC2\x92",
		"\x93" => "\xC2\x93",
		"\x94" => "\xC2\x94",
		"\x95" => "\xC2\x95",
		"\x96" => "\xC2\x96",
		"\x97" => "\xC2\x97",
		"\x98" => "\xC2\x98",
		"\x99" => "\xC2\x99",
		"\x9A" => "\xC2\x9A",
		"\x9B" => "\xC2\x9B",
		"\x9C" => "\xC2\x9C",
		"\x9D" => "\xC2\x9D",
		"\x9E" => "\xC2\x9E",
		"\x9F" => "\xC2\x9F",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xE2\x80\x98",
		"\xA2" => "\xE2\x80\x99",
		"\xA3" => "\xC2\xA3",
		"\xA4" => "\xE2\x82\xAC",
		"\xA5" => "\xE2\x82\xAF",
		"\xA6" => "\xC2\xA6",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xC2\xA8",
		"\xA9" => "\xC2\xA9",
		"\xAA" => "\xCD\xBA",
		"\xAB" => "\xC2\xAB",
		"\xAC" => "\xC2\xAC",
		"\xAD" => "\xC2\xAD",
		"\xAF" => "\xE2\x80\x95",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC2\xB1",
		"\xB2" => "\xC2\xB2",
		"\xB3" => "\xC2\xB3",
		"\xB4" => "\xCE\x84",
		"\xB5" => "\xCE\x85",
		"\xB6" => "\xCE\x86",
		"\xB7" => "\xC2\xB7",
		"\xB8" => "\xCE\x88",
		"\xB9" => "\xCE\x89",
		"\xBA" => "\xCE\x8A",
		"\xBB" => "\xC2\xBB",
		"\xBC" => "\xCE\x8C",
		"\xBD" => "\xC2\xBD",
		"\xBE" => "\xCE\x8E",
		"\xBF" => "\xCE\x8F",
		"\xC0" => "\xCE\x90",
		"\xC1" => "\xCE\x91",
		"\xC2" => "\xCE\x92",
		"\xC3" => "\xCE\x93",
		"\xC4" => "\xCE\x94",
		"\xC5" => "\xCE\x95",
		"\xC6" => "\xCE\x96",
		"\xC7" => "\xCE\x97",
		"\xC8" => "\xCE\x98",
		"\xC9" => "\xCE\x99",
		"\xCA" => "\xCE\x9A",
		"\xCB" => "\xCE\x9B",
		"\xCC" => "\xCE\x9C",
		"\xCD" => "\xCE\x9D",
		"\xCE" => "\xCE\x9E",
		"\xCF" => "\xCE\x9F",
		"\xD0" => "\xCE\xA0",
		"\xD1" => "\xCE\xA1",
		"\xD3" => "\xCE\xA3",
		"\xD4" => "\xCE\xA4",
		"\xD5" => "\xCE\xA5",
		"\xD6" => "\xCE\xA6",
		"\xD7" => "\xCE\xA7",
		"\xD8" => "\xCE\xA8",
		"\xD9" => "\xCE\xA9",
		"\xDA" => "\xCE\xAA",
		"\xDB" => "\xCE\xAB",
		"\xDC" => "\xCE\xAC",
		"\xDD" => "\xCE\xAD",
		"\xDE" => "\xCE\xAE",
		"\xDF" => "\xCE\xAF",
		"\xE0" => "\xCE\xB0",
		"\xE1" => "\xCE\xB1",
		"\xE2" => "\xCE\xB2",
		"\xE3" => "\xCE\xB3",
		"\xE4" => "\xCE\xB4",
		"\xE5" => "\xCE\xB5",
		"\xE6" => "\xCE\xB6",
		"\xE7" => "\xCE\xB7",
		"\xE8" => "\xCE\xB8",
		"\xE9" => "\xCE\xB9",
		"\xEA" => "\xCE\xBA",
		"\xEB" => "\xCE\xBB",
		"\xEC" => "\xCE\xBC",
		"\xED" => "\xCE\xBD",
		"\xEE" => "\xCE\xBE",
		"\xEF" => "\xCE\xBF",
		"\xF0" => "\xCF\x80",
		"\xF1" => "\xCF\x81",
		"\xF2" => "\xCF\x82",
		"\xF3" => "\xCF\x83",
		"\xF4" => "\xCF\x84",
		"\xF5" => "\xCF\x85",
		"\xF6" => "\xCF\x86",
		"\xF7" => "\xCF\x87",
		"\xF8" => "\xCF\x88",
		"\xF9" => "\xCF\x89",
		"\xFA" => "\xCF\x8A",
		"\xFB" => "\xCF\x8B",
		"\xFC" => "\xCF\x8C",
		"\xFD" => "\xCF\x8D",
		"\xFE" => "\xCF\x8E",
	);
	return strtr($string, $transform);
}

function iso_8859_8($string)
{
	static $transform = array(
		"\xC2\xAA" => "\xC3\x97",
		"\xC2\xBA" => "\xC3\xB7",
		"\xC3\x9F" => "\xE2\x80\x97",
		"\xC3\xA0" => "\xD7\x90",
		"\xC3\xA1" => "\xD7\x91",
		"\xC3\xA2" => "\xD7\x92",
		"\xC3\xA3" => "\xD7\x93",
		"\xC3\xA4" => "\xD7\x94",
		"\xC3\xA5" => "\xD7\x95",
		"\xC3\xA6" => "\xD7\x96",
		"\xC3\xA7" => "\xD7\x97",
		"\xC3\xA8" => "\xD7\x98",
		"\xC3\xA9" => "\xD7\x99",
		"\xC3\xAA" => "\xD7\x9A",
		"\xC3\xAB" => "\xD7\x9B",
		"\xC3\xAC" => "\xD7\x9C",
		"\xC3\xAD" => "\xD7\x9D",
		"\xC3\xAE" => "\xD7\x9E",
		"\xC3\xAF" => "\xD7\x9F",
		"\xC3\xB0" => "\xD7\xA0",
		"\xC3\xB1" => "\xD7\xA1",
		"\xC3\xB2" => "\xD7\xA2",
		"\xC3\xB3" => "\xD7\xA3",
		"\xC3\xB4" => "\xD7\xA4",
		"\xC3\xB5" => "\xD7\xA5",
		"\xC3\xB6" => "\xD7\xA6",
		"\xC3\xB7" => "\xD7\xA7",
		"\xC3\xB8" => "\xD7\xA8",
		"\xC3\xB9" => "\xD7\xA9",
		"\xC3\xBA" => "\xD7\xAA",
		"\xC3\xBD" => "\xE2\x80\x8E",
		"\xC3\xBE" => "\xE2\x80\x8F",
	);
	return strtr(utf8_encode($string), $transform);
}

function iso_8859_9($string)
{
	static $transform = array(
		"\xC3\x90" => "\xC4\x9E",
		"\xC3\x9D" => "\xC4\xB0",
		"\xC3\x9E" => "\xC5\x9E",
		"\xC3\xB0" => "\xC4\x9F",
		"\xC3\xBD" => "\xC4\xB1",
		"\xC3\xBE" => "\xC5\x9F",
	);
	return strtr(utf8_encode($string), $transform);
}

function iso_8859_15($string)
{
	static $transform = array(
		"\xC2\xA4" => "\xE2\x82\xAC",
		"\xC2\xA6" => "\xC5\xA0",
		"\xC2\xA8" => "\xC5\xA1",
		"\xC2\xB4" => "\xC5\xBD",
		"\xC2\xB8" => "\xC5\xBE",
		"\xC2\xBC" => "\xC5\x92",
		"\xC2\xBD" => "\xC5\x93",
		"\xC2\xBE" => "\xC5\xB8",
	);
	return strtr(utf8_encode($string), $transform);
}

// nearly the same as iso-8859-11
function tis_620($string)
{
	static $transform = array(
		"\x80" => "\xC2\x80",
		"\x81" => "\xC2\x81",
		"\x82" => "\xC2\x82",
		"\x83" => "\xC2\x83",
		"\x84" => "\xC2\x84",
		"\x85" => "\xC2\x85",
		"\x86" => "\xC2\x86",
		"\x87" => "\xC2\x87",
		"\x88" => "\xC2\x88",
		"\x89" => "\xC2\x89",
		"\x8A" => "\xC2\x8A",
		"\x8B" => "\xC2\x8B",
		"\x8C" => "\xC2\x8C",
		"\x8D" => "\xC2\x8D",
		"\x8E" => "\xC2\x8E",
		"\x8F" => "\xC2\x8F",
		"\x90" => "\xC2\x90",
		"\x91" => "\xC2\x91",
		"\x92" => "\xC2\x92",
		"\x93" => "\xC2\x93",
		"\x94" => "\xC2\x94",
		"\x95" => "\xC2\x95",
		"\x96" => "\xC2\x96",
		"\x97" => "\xC2\x97",
		"\x98" => "\xC2\x98",
		"\x99" => "\xC2\x99",
		"\x9A" => "\xC2\x9A",
		"\x9B" => "\xC2\x9B",
		"\x9C" => "\xC2\x9C",
		"\x9D" => "\xC2\x9D",
		"\x9E" => "\xC2\x9E",
		"\x9F" => "\xC2\x9F",
		"\xA1" => "\xE0\xB8\x81",
		"\xA2" => "\xE0\xB8\x82",
		"\xA3" => "\xE0\xB8\x83",
		"\xA4" => "\xE0\xB8\x84",
		"\xA5" => "\xE0\xB8\x85",
		"\xA6" => "\xE0\xB8\x86",
		"\xA7" => "\xE0\xB8\x87",
		"\xA8" => "\xE0\xB8\x88",
		"\xA9" => "\xE0\xB8\x89",
		"\xAA" => "\xE0\xB8\x8A",
		"\xAB" => "\xE0\xB8\x8B",
		"\xAC" => "\xE0\xB8\x8C",
		"\xAD" => "\xE0\xB8\x8D",
		"\xAE" => "\xE0\xB8\x8E",
		"\xAF" => "\xE0\xB8\x8F",
		"\xB0" => "\xE0\xB8\x90",
		"\xB1" => "\xE0\xB8\x91",
		"\xB2" => "\xE0\xB8\x92",
		"\xB3" => "\xE0\xB8\x93",
		"\xB4" => "\xE0\xB8\x94",
		"\xB5" => "\xE0\xB8\x95",
		"\xB6" => "\xE0\xB8\x96",
		"\xB7" => "\xE0\xB8\x97",
		"\xB8" => "\xE0\xB8\x98",
		"\xB9" => "\xE0\xB8\x99",
		"\xBA" => "\xE0\xB8\x9A",
		"\xBB" => "\xE0\xB8\x9B",
		"\xBC" => "\xE0\xB8\x9C",
		"\xBD" => "\xE0\xB8\x9D",
		"\xBE" => "\xE0\xB8\x9E",
		"\xBF" => "\xE0\xB8\x9F",
		"\xC0" => "\xE0\xB8\xA0",
		"\xC1" => "\xE0\xB8\xA1",
		"\xC2" => "\xE0\xB8\xA2",
		"\xC3" => "\xE0\xB8\xA3",
		"\xC4" => "\xE0\xB8\xA4",
		"\xC5" => "\xE0\xB8\xA5",
		"\xC6" => "\xE0\xB8\xA6",
		"\xC7" => "\xE0\xB8\xA7",
		"\xC8" => "\xE0\xB8\xA8",
		"\xC9" => "\xE0\xB8\xA9",
		"\xCA" => "\xE0\xB8\xAA",
		"\xCB" => "\xE0\xB8\xAB",
		"\xCC" => "\xE0\xB8\xAC",
		"\xCD" => "\xE0\xB8\xAD",
		"\xCE" => "\xE0\xB8\xAE",
		"\xCF" => "\xE0\xB8\xAF",
		"\xD0" => "\xE0\xB8\xB0",
		"\xD1" => "\xE0\xB8\xB1",
		"\xD2" => "\xE0\xB8\xB2",
		"\xD3" => "\xE0\xB8\xB3",
		"\xD4" => "\xE0\xB8\xB4",
		"\xD5" => "\xE0\xB8\xB5",
		"\xD6" => "\xE0\xB8\xB6",
		"\xD7" => "\xE0\xB8\xB7",
		"\xD8" => "\xE0\xB8\xB8",
		"\xD9" => "\xE0\xB8\xB9",
		"\xDA" => "\xE0\xB8\xBA",
		"\xDF" => "\xE0\xB8\xBF",
		"\xE0" => "\xE0\xB9\x80",
		"\xE1" => "\xE0\xB9\x81",
		"\xE2" => "\xE0\xB9\x82",
		"\xE3" => "\xE0\xB9\x83",
		"\xE4" => "\xE0\xB9\x84",
		"\xE5" => "\xE0\xB9\x85",
		"\xE6" => "\xE0\xB9\x86",
		"\xE7" => "\xE0\xB9\x87",
		"\xE8" => "\xE0\xB9\x88",
		"\xE9" => "\xE0\xB9\x89",
		"\xEA" => "\xE0\xB9\x8A",
		"\xEB" => "\xE0\xB9\x8B",
		"\xEC" => "\xE0\xB9\x8C",
		"\xED" => "\xE0\xB9\x8D",
		"\xEE" => "\xE0\xB9\x8E",
		"\xEF" => "\xE0\xB9\x8F",
		"\xF0" => "\xE0\xB9\x90",
		"\xF1" => "\xE0\xB9\x91",
		"\xF2" => "\xE0\xB9\x92",
		"\xF3" => "\xE0\xB9\x93",
		"\xF4" => "\xE0\xB9\x94",
		"\xF5" => "\xE0\xB9\x95",
		"\xF6" => "\xE0\xB9\x96",
		"\xF7" => "\xE0\xB9\x97",
		"\xF8" => "\xE0\xB9\x98",
		"\xF9" => "\xE0\xB9\x99",
		"\xFA" => "\xE0\xB9\x9A",
		"\xFB" => "\xE0\xB9\x9B",
	);
	return strtr($string, $transform);
}

function cp874($string)
{
	static $transform = array(
		"\x80" => "\xE2\x82\xAC",
		"\x85" => "\xE2\x80\xA6",
		"\x91" => "\xE2\x80\x98",
		"\x92" => "\xE2\x80\x99",
		"\x93" => "\xE2\x80\x9C",
		"\x94" => "\xE2\x80\x9D",
		"\x95" => "\xE2\x80\xA2",
		"\x96" => "\xE2\x80\x93",
		"\x97" => "\xE2\x80\x94",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xE0\xB8\x81",
		"\xA2" => "\xE0\xB8\x82",
		"\xA3" => "\xE0\xB8\x83",
		"\xA4" => "\xE0\xB8\x84",
		"\xA5" => "\xE0\xB8\x85",
		"\xA6" => "\xE0\xB8\x86",
		"\xA7" => "\xE0\xB8\x87",
		"\xA8" => "\xE0\xB8\x88",
		"\xA9" => "\xE0\xB8\x89",
		"\xAA" => "\xE0\xB8\x8A",
		"\xAB" => "\xE0\xB8\x8B",
		"\xAC" => "\xE0\xB8\x8C",
		"\xAD" => "\xE0\xB8\x8D",
		"\xAE" => "\xE0\xB8\x8E",
		"\xAF" => "\xE0\xB8\x8F",
		"\xB0" => "\xE0\xB8\x90",
		"\xB1" => "\xE0\xB8\x91",
		"\xB2" => "\xE0\xB8\x92",
		"\xB3" => "\xE0\xB8\x93",
		"\xB4" => "\xE0\xB8\x94",
		"\xB5" => "\xE0\xB8\x95",
		"\xB6" => "\xE0\xB8\x96",
		"\xB7" => "\xE0\xB8\x97",
		"\xB8" => "\xE0\xB8\x98",
		"\xB9" => "\xE0\xB8\x99",
		"\xBA" => "\xE0\xB8\x9A",
		"\xBB" => "\xE0\xB8\x9B",
		"\xBC" => "\xE0\xB8\x9C",
		"\xBD" => "\xE0\xB8\x9D",
		"\xBE" => "\xE0\xB8\x9E",
		"\xBF" => "\xE0\xB8\x9F",
		"\xC0" => "\xE0\xB8\xA0",
		"\xC1" => "\xE0\xB8\xA1",
		"\xC2" => "\xE0\xB8\xA2",
		"\xC3" => "\xE0\xB8\xA3",
		"\xC4" => "\xE0\xB8\xA4",
		"\xC5" => "\xE0\xB8\xA5",
		"\xC6" => "\xE0\xB8\xA6",
		"\xC7" => "\xE0\xB8\xA7",
		"\xC8" => "\xE0\xB8\xA8",
		"\xC9" => "\xE0\xB8\xA9",
		"\xCA" => "\xE0\xB8\xAA",
		"\xCB" => "\xE0\xB8\xAB",
		"\xCC" => "\xE0\xB8\xAC",
		"\xCD" => "\xE0\xB8\xAD",
		"\xCE" => "\xE0\xB8\xAE",
		"\xCF" => "\xE0\xB8\xAF",
		"\xD0" => "\xE0\xB8\xB0",
		"\xD1" => "\xE0\xB8\xB1",
		"\xD2" => "\xE0\xB8\xB2",
		"\xD3" => "\xE0\xB8\xB3",
		"\xD4" => "\xE0\xB8\xB4",
		"\xD5" => "\xE0\xB8\xB5",
		"\xD6" => "\xE0\xB8\xB6",
		"\xD7" => "\xE0\xB8\xB7",
		"\xD8" => "\xE0\xB8\xB8",
		"\xD9" => "\xE0\xB8\xB9",
		"\xDA" => "\xE0\xB8\xBA",
		"\xDF" => "\xE0\xB8\xBF",
		"\xE0" => "\xE0\xB9\x80",
		"\xE1" => "\xE0\xB9\x81",
		"\xE2" => "\xE0\xB9\x82",
		"\xE3" => "\xE0\xB9\x83",
		"\xE4" => "\xE0\xB9\x84",
		"\xE5" => "\xE0\xB9\x85",
		"\xE6" => "\xE0\xB9\x86",
		"\xE7" => "\xE0\xB9\x87",
		"\xE8" => "\xE0\xB9\x88",
		"\xE9" => "\xE0\xB9\x89",
		"\xEA" => "\xE0\xB9\x8A",
		"\xEB" => "\xE0\xB9\x8B",
		"\xEC" => "\xE0\xB9\x8C",
		"\xED" => "\xE0\xB9\x8D",
		"\xEE" => "\xE0\xB9\x8E",
		"\xEF" => "\xE0\xB9\x8F",
		"\xF0" => "\xE0\xB9\x90",
		"\xF1" => "\xE0\xB9\x91",
		"\xF2" => "\xE0\xB9\x92",
		"\xF3" => "\xE0\xB9\x93",
		"\xF4" => "\xE0\xB9\x94",
		"\xF5" => "\xE0\xB9\x95",
		"\xF6" => "\xE0\xB9\x96",
		"\xF7" => "\xE0\xB9\x97",
		"\xF8" => "\xE0\xB9\x98",
		"\xF9" => "\xE0\xB9\x99",
		"\xFA" => "\xE0\xB9\x9A",
		"\xFB" => "\xE0\xB9\x9B",
	);
	return strtr($string, $transform);
}

function cp1250($string)
{
	static $transform = array(
		"\x80" => "\xE2\x82\xAC",
		"\x82" => "\xE2\x80\x9A",
		"\x84" => "\xE2\x80\x9E",
		"\x85" => "\xE2\x80\xA6",
		"\x86" => "\xE2\x80\xA0",
		"\x87" => "\xE2\x80\xA1",
		"\x89" => "\xE2\x80\xB0",
		"\x8A" => "\xC5\xA0",
		"\x8B" => "\xE2\x80\xB9",
		"\x8C" => "\xC5\x9A",
		"\x8D" => "\xC5\xA4",
		"\x8E" => "\xC5\xBD",
		"\x8F" => "\xC5\xB9",
		"\x91" => "\xE2\x80\x98",
		"\x92" => "\xE2\x80\x99",
		"\x93" => "\xE2\x80\x9C",
		"\x94" => "\xE2\x80\x9D",
		"\x95" => "\xE2\x80\xA2",
		"\x96" => "\xE2\x80\x93",
		"\x97" => "\xE2\x80\x94",
		"\x99" => "\xE2\x84\xA2",
		"\x9A" => "\xC5\xA1",
		"\x9B" => "\xE2\x80\xBA",
		"\x9C" => "\xC5\x9B",
		"\x9D" => "\xC5\xA5",
		"\x9E" => "\xC5\xBE",
		"\x9F" => "\xC5\xBA",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xCB\x87",
		"\xA2" => "\xCB\x98",
		"\xA3" => "\xC5\x81",
		"\xA4" => "\xC2\xA4",
		"\xA5" => "\xC4\x84",
		"\xA6" => "\xC2\xA6",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xC2\xA8",
		"\xA9" => "\xC2\xA9",
		"\xAA" => "\xC5\x9E",
		"\xAB" => "\xC2\xAB",
		"\xAC" => "\xC2\xAC",
		"\xAD" => "\xC2\xAD",
		"\xAE" => "\xC2\xAE",
		"\xAF" => "\xC5\xBB",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC2\xB1",
		"\xB2" => "\xCB\x9B",
		"\xB3" => "\xC5\x82",
		"\xB4" => "\xC2\xB4",
		"\xB5" => "\xC2\xB5",
		"\xB6" => "\xC2\xB6",
		"\xB7" => "\xC2\xB7",
		"\xB8" => "\xC2\xB8",
		"\xB9" => "\xC4\x85",
		"\xBA" => "\xC5\x9F",
		"\xBB" => "\xC2\xBB",
		"\xBC" => "\xC4\xBD",
		"\xBD" => "\xCB\x9D",
		"\xBE" => "\xC4\xBE",
		"\xBF" => "\xC5\xBC",
		"\xC0" => "\xC5\x94",
		"\xC1" => "\xC3\x81",
		"\xC2" => "\xC3\x82",
		"\xC3" => "\xC4\x82",
		"\xC4" => "\xC3\x84",
		"\xC5" => "\xC4\xB9",
		"\xC6" => "\xC4\x86",
		"\xC7" => "\xC3\x87",
		"\xC8" => "\xC4\x8C",
		"\xC9" => "\xC3\x89",
		"\xCA" => "\xC4\x98",
		"\xCB" => "\xC3\x8B",
		"\xCC" => "\xC4\x9A",
		"\xCD" => "\xC3\x8D",
		"\xCE" => "\xC3\x8E",
		"\xCF" => "\xC4\x8E",
		"\xD0" => "\xC4\x90",
		"\xD1" => "\xC5\x83",
		"\xD2" => "\xC5\x87",
		"\xD3" => "\xC3\x93",
		"\xD4" => "\xC3\x94",
		"\xD5" => "\xC5\x90",
		"\xD6" => "\xC3\x96",
		"\xD7" => "\xC3\x97",
		"\xD8" => "\xC5\x98",
		"\xD9" => "\xC5\xAE",
		"\xDA" => "\xC3\x9A",
		"\xDB" => "\xC5\xB0",
		"\xDC" => "\xC3\x9C",
		"\xDD" => "\xC3\x9D",
		"\xDE" => "\xC5\xA2",
		"\xDF" => "\xC3\x9F",
		"\xE0" => "\xC5\x95",
		"\xE1" => "\xC3\xA1",
		"\xE2" => "\xC3\xA2",
		"\xE3" => "\xC4\x83",
		"\xE4" => "\xC3\xA4",
		"\xE5" => "\xC4\xBA",
		"\xE6" => "\xC4\x87",
		"\xE7" => "\xC3\xA7",
		"\xE8" => "\xC4\x8D",
		"\xE9" => "\xC3\xA9",
		"\xEA" => "\xC4\x99",
		"\xEB" => "\xC3\xAB",
		"\xEC" => "\xC4\x9B",
		"\xED" => "\xC3\xAD",
		"\xEE" => "\xC3\xAE",
		"\xEF" => "\xC4\x8F",
		"\xF0" => "\xC4\x91",
		"\xF1" => "\xC5\x84",
		"\xF2" => "\xC5\x88",
		"\xF3" => "\xC3\xB3",
		"\xF4" => "\xC3\xB4",
		"\xF5" => "\xC5\x91",
		"\xF6" => "\xC3\xB6",
		"\xF7" => "\xC3\xB7",
		"\xF8" => "\xC5\x99",
		"\xF9" => "\xC5\xAF",
		"\xFA" => "\xC3\xBA",
		"\xFB" => "\xC5\xB1",
		"\xFC" => "\xC3\xBC",
		"\xFD" => "\xC3\xBD",
		"\xFE" => "\xC5\xA3",
		"\xFF" => "\xCB\x99",
	);
	return strtr($string, $transform);
}

function cp1251($string)
{
	static $transform = array(
		"\x80" => "\xD0\x82",
		"\x81" => "\xD0\x83",
		"\x82" => "\xE2\x80\x9A",
		"\x83" => "\xD1\x93",
		"\x84" => "\xE2\x80\x9E",
		"\x85" => "\xE2\x80\xA6",
		"\x86" => "\xE2\x80\xA0",
		"\x87" => "\xE2\x80\xA1",
		"\x88" => "\xE2\x82\xAC",
		"\x89" => "\xE2\x80\xB0",
		"\x8A" => "\xD0\x89",
		"\x8B" => "\xE2\x80\xB9",
		"\x8C" => "\xD0\x8A",
		"\x8D" => "\xD0\x8C",
		"\x8E" => "\xD0\x8B",
		"\x8F" => "\xD0\x8F",
		"\x90" => "\xD1\x92",
		"\x91" => "\xE2\x80\x98",
		"\x92" => "\xE2\x80\x99",
		"\x93" => "\xE2\x80\x9C",
		"\x94" => "\xE2\x80\x9D",
		"\x95" => "\xE2\x80\xA2",
		"\x96" => "\xE2\x80\x93",
		"\x97" => "\xE2\x80\x94",
		"\x99" => "\xE2\x84\xA2",
		"\x9A" => "\xD1\x99",
		"\x9B" => "\xE2\x80\xBA",
		"\x9C" => "\xD1\x9A",
		"\x9D" => "\xD1\x9C",
		"\x9E" => "\xD1\x9B",
		"\x9F" => "\xD1\x9F",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xD0\x8E",
		"\xA2" => "\xD1\x9E",
		"\xA3" => "\xD0\x88",
		"\xA4" => "\xC2\xA4",
		"\xA5" => "\xD2\x90",
		"\xA6" => "\xC2\xA6",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xD0\x81",
		"\xA9" => "\xC2\xA9",
		"\xAA" => "\xD0\x84",
		"\xAB" => "\xC2\xAB",
		"\xAC" => "\xC2\xAC",
		"\xAD" => "\xC2\xAD",
		"\xAE" => "\xC2\xAE",
		"\xAF" => "\xD0\x87",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC2\xB1",
		"\xB2" => "\xD0\x86",
		"\xB3" => "\xD1\x96",
		"\xB4" => "\xD2\x91",
		"\xB5" => "\xC2\xB5",
		"\xB6" => "\xC2\xB6",
		"\xB7" => "\xC2\xB7",
		"\xB8" => "\xD1\x91",
		"\xB9" => "\xE2\x84\x96",
		"\xBA" => "\xD1\x94",
		"\xBB" => "\xC2\xBB",
		"\xBC" => "\xD1\x98",
		"\xBD" => "\xD0\x85",
		"\xBE" => "\xD1\x95",
		"\xBF" => "\xD1\x97",
		"\xC0" => "\xD0\x90",
		"\xC1" => "\xD0\x91",
		"\xC2" => "\xD0\x92",
		"\xC3" => "\xD0\x93",
		"\xC4" => "\xD0\x94",
		"\xC5" => "\xD0\x95",
		"\xC6" => "\xD0\x96",
		"\xC7" => "\xD0\x97",
		"\xC8" => "\xD0\x98",
		"\xC9" => "\xD0\x99",
		"\xCA" => "\xD0\x9A",
		"\xCB" => "\xD0\x9B",
		"\xCC" => "\xD0\x9C",
		"\xCD" => "\xD0\x9D",
		"\xCE" => "\xD0\x9E",
		"\xCF" => "\xD0\x9F",
		"\xD0" => "\xD0\xA0",
		"\xD1" => "\xD0\xA1",
		"\xD2" => "\xD0\xA2",
		"\xD3" => "\xD0\xA3",
		"\xD4" => "\xD0\xA4",
		"\xD5" => "\xD0\xA5",
		"\xD6" => "\xD0\xA6",
		"\xD7" => "\xD0\xA7",
		"\xD8" => "\xD0\xA8",
		"\xD9" => "\xD0\xA9",
		"\xDA" => "\xD0\xAA",
		"\xDB" => "\xD0\xAB",
		"\xDC" => "\xD0\xAC",
		"\xDD" => "\xD0\xAD",
		"\xDE" => "\xD0\xAE",
		"\xDF" => "\xD0\xAF",
		"\xE0" => "\xD0\xB0",
		"\xE1" => "\xD0\xB1",
		"\xE2" => "\xD0\xB2",
		"\xE3" => "\xD0\xB3",
		"\xE4" => "\xD0\xB4",
		"\xE5" => "\xD0\xB5",
		"\xE6" => "\xD0\xB6",
		"\xE7" => "\xD0\xB7",
		"\xE8" => "\xD0\xB8",
		"\xE9" => "\xD0\xB9",
		"\xEA" => "\xD0\xBA",
		"\xEB" => "\xD0\xBB",
		"\xEC" => "\xD0\xBC",
		"\xED" => "\xD0\xBD",
		"\xEE" => "\xD0\xBE",
		"\xEF" => "\xD0\xBF",
		"\xF0" => "\xD1\x80",
		"\xF1" => "\xD1\x81",
		"\xF2" => "\xD1\x82",
		"\xF3" => "\xD1\x83",
		"\xF4" => "\xD1\x84",
		"\xF5" => "\xD1\x85",
		"\xF6" => "\xD1\x86",
		"\xF7" => "\xD1\x87",
		"\xF8" => "\xD1\x88",
		"\xF9" => "\xD1\x89",
		"\xFA" => "\xD1\x8A",
		"\xFB" => "\xD1\x8B",
		"\xFC" => "\xD1\x8C",
		"\xFD" => "\xD1\x8D",
		"\xFE" => "\xD1\x8E",
		"\xFF" => "\xD1\x8F",
	);
	return strtr($string, $transform);
}

function cp1252($string)
{
	static $transform = array(
		"\xC2\x80" => "\xE2\x82\xAC",
		"\xC2\x82" => "\xE2\x80\x9A",
		"\xC2\x83" => "\xC6\x92",
		"\xC2\x84" => "\xE2\x80\x9E",
		"\xC2\x85" => "\xE2\x80\xA6",
		"\xC2\x86" => "\xE2\x80\xA0",
		"\xC2\x87" => "\xE2\x80\xA1",
		"\xC2\x88" => "\xCB\x86",
		"\xC2\x89" => "\xE2\x80\xB0",
		"\xC2\x8A" => "\xC5\xA0",
		"\xC2\x8B" => "\xE2\x80\xB9",
		"\xC2\x8C" => "\xC5\x92",
		"\xC2\x8E" => "\xC5\xBD",
		"\xC2\x91" => "\xE2\x80\x98",
		"\xC2\x92" => "\xE2\x80\x99",
		"\xC2\x93" => "\xE2\x80\x9C",
		"\xC2\x94" => "\xE2\x80\x9D",
		"\xC2\x95" => "\xE2\x80\xA2",
		"\xC2\x96" => "\xE2\x80\x93",
		"\xC2\x97" => "\xE2\x80\x94",
		"\xC2\x98" => "\xCB\x9C",
		"\xC2\x99" => "\xE2\x84\xA2",
		"\xC2\x9A" => "\xC5\xA1",
		"\xC2\x9B" => "\xE2\x80\xBA",
		"\xC2\x9C" => "\xC5\x93",
		"\xC2\x9E" => "\xC5\xBE",
		"\xC2\x9F" => "\xC5\xB8"
	);
	return strtr(utf8_encode($string), $transform);
}

function cp1254($string)
{
	static $transform = array(
		"\xC2\x80" => "\xE2\x82\xAC",
		"\xC2\x82" => "\xE2\x80\x9A",
		"\xC2\x83" => "\xC6\x92",
		"\xC2\x84" => "\xE2\x80\x9E",
		"\xC2\x85" => "\xE2\x80\xA6",
		"\xC2\x86" => "\xE2\x80\xA0",
		"\xC2\x87" => "\xE2\x80\xA1",
		"\xC2\x88" => "\xCB\x86",
		"\xC2\x89" => "\xE2\x80\xB0",
		"\xC2\x8A" => "\xC5\xA0",
		"\xC2\x8B" => "\xE2\x80\xB9",
		"\xC2\x8C" => "\xC5\x92",
		"\xC2\x91" => "\xE2\x80\x98",
		"\xC2\x92" => "\xE2\x80\x99",
		"\xC2\x93" => "\xE2\x80\x9C",
		"\xC2\x94" => "\xE2\x80\x9D",
		"\xC2\x95" => "\xE2\x80\xA2",
		"\xC2\x96" => "\xE2\x80\x93",
		"\xC2\x97" => "\xE2\x80\x94",
		"\xC2\x98" => "\xCB\x9C",
		"\xC2\x99" => "\xE2\x84\xA2",
		"\xC2\x9A" => "\xC5\xA1",
		"\xC2\x9B" => "\xE2\x80\xBA",
		"\xC2\x9C" => "\xC5\x93",
		"\xC2\x9F" => "\xC5\xB8",
		"\xC3\x90" => "\xC4\x9E",
		"\xC3\x9D" => "\xC4\xB0",
		"\xC3\x9E" => "\xC5\x9E",
		"\xC3\xB0" => "\xC4\x9F",
		"\xC3\xBD" => "\xC4\xB1",
		"\xC3\xBE" => "\xC5\x9F",
	);
	return strtr(utf8_encode($string), $transform);
}

function cp1255($string)
{
	static $transform = array(
		"\x80" => "\xE2\x82\xAC",
		"\x82" => "\xE2\x80\x9A",
		"\x83" => "\xC6\x92",
		"\x84" => "\xE2\x80\x9E",
		"\x85" => "\xE2\x80\xA6",
		"\x86" => "\xE2\x80\xA0",
		"\x87" => "\xE2\x80\xA1",
		"\x88" => "\xCB\x86",
		"\x89" => "\xE2\x80\xB0",
		"\x8B" => "\xE2\x80\xB9",
		"\x91" => "\xE2\x80\x98",
		"\x92" => "\xE2\x80\x99",
		"\x93" => "\xE2\x80\x9C",
		"\x94" => "\xE2\x80\x9D",
		"\x95" => "\xE2\x80\xA2",
		"\x96" => "\xE2\x80\x93",
		"\x97" => "\xE2\x80\x94",
		"\x98" => "\xCB\x9C",
		"\x99" => "\xE2\x84\xA2",
		"\x9B" => "\xE2\x80\xBA",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xC2\xA1",
		"\xA2" => "\xC2\xA2",
		"\xA3" => "\xC2\xA3",
		"\xA4" => "\xE2\x82\xAA",
		"\xA5" => "\xC2\xA5",
		"\xA6" => "\xC2\xA6",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xC2\xA8",
		"\xA9" => "\xC2\xA9",
		"\xAA" => "\xC3\x97",
		"\xAB" => "\xC2\xAB",
		"\xAC" => "\xC2\xAC",
		"\xAD" => "\xC2\xAD",
		"\xAE" => "\xC2\xAE",
		"\xAF" => "\xC2\xAF",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC2\xB1",
		"\xB2" => "\xC2\xB2",
		"\xB3" => "\xC2\xB3",
		"\xB4" => "\xC2\xB4",
		"\xB5" => "\xC2\xB5",
		"\xB6" => "\xC2\xB6",
		"\xB7" => "\xC2\xB7",
		"\xB8" => "\xC2\xB8",
		"\xB9" => "\xC2\xB9",
		"\xBA" => "\xC3\xB7",
		"\xBB" => "\xC2\xBB",
		"\xBC" => "\xC2\xBC",
		"\xBD" => "\xC2\xBD",
		"\xBE" => "\xC2\xBE",
		"\xBF" => "\xC2\xBF",
		"\xC0" => "\xD6\xB0",
		"\xC1" => "\xD6\xB1",
		"\xC2" => "\xD6\xB2",
		"\xC3" => "\xD6\xB3",
		"\xC4" => "\xD6\xB4",
		"\xC5" => "\xD6\xB5",
		"\xC6" => "\xD6\xB6",
		"\xC7" => "\xD6\xB7",
		"\xC8" => "\xD6\xB8",
		"\xC9" => "\xD6\xB9",
		"\xCB" => "\xD6\xBB",
		"\xCC" => "\xD6\xBC",
		"\xCD" => "\xD6\xBD",
		"\xCE" => "\xD6\xBE",
		"\xCF" => "\xD6\xBF",
		"\xD0" => "\xD7\x80",
		"\xD1" => "\xD7\x81",
		"\xD2" => "\xD7\x82",
		"\xD3" => "\xD7\x83",
		"\xD4" => "\xD7\xB0",
		"\xD5" => "\xD7\xB1",
		"\xD6" => "\xD7\xB2",
		"\xD7" => "\xD7\xB3",
		"\xD8" => "\xD7\xB4",
		"\xE0" => "\xD7\x90",
		"\xE1" => "\xD7\x91",
		"\xE2" => "\xD7\x92",
		"\xE3" => "\xD7\x93",
		"\xE4" => "\xD7\x94",
		"\xE5" => "\xD7\x95",
		"\xE6" => "\xD7\x96",
		"\xE7" => "\xD7\x97",
		"\xE8" => "\xD7\x98",
		"\xE9" => "\xD7\x99",
		"\xEA" => "\xD7\x9A",
		"\xEB" => "\xD7\x9B",
		"\xEC" => "\xD7\x9C",
		"\xED" => "\xD7\x9D",
		"\xEE" => "\xD7\x9E",
		"\xEF" => "\xD7\x9F",
		"\xF0" => "\xD7\xA0",
		"\xF1" => "\xD7\xA1",
		"\xF2" => "\xD7\xA2",
		"\xF3" => "\xD7\xA3",
		"\xF4" => "\xD7\xA4",
		"\xF5" => "\xD7\xA5",
		"\xF6" => "\xD7\xA6",
		"\xF7" => "\xD7\xA7",
		"\xF8" => "\xD7\xA8",
		"\xF9" => "\xD7\xA9",
		"\xFA" => "\xD7\xAA",
		"\xFD" => "\xE2\x80\x8E",
		"\xFE" => "\xE2\x80\x8F",
	);
	return strtr($string, $transform);
}

function cp1256($string)
{
	static $transform = array(
		"\x80" => "\xE2\x82\xAC",
		"\x81" => "\xD9\xBE",
		"\x82" => "\xE2\x80\x9A",
		"\x83" => "\xC6\x92",
		"\x84" => "\xE2\x80\x9E",
		"\x85" => "\xE2\x80\xA6",
		"\x86" => "\xE2\x80\xA0",
		"\x87" => "\xE2\x80\xA1",
		"\x88" => "\xCB\x86",
		"\x89" => "\xE2\x80\xB0",
		"\x8A" => "\xD9\xB9",
		"\x8B" => "\xE2\x80\xB9",
		"\x8C" => "\xC5\x92",
		"\x8D" => "\xDA\x86",
		"\x8E" => "\xDA\x98",
		"\x8F" => "\xDA\x88",
		"\x90" => "\xDA\xAF",
		"\x91" => "\xE2\x80\x98",
		"\x92" => "\xE2\x80\x99",
		"\x93" => "\xE2\x80\x9C",
		"\x94" => "\xE2\x80\x9D",
		"\x95" => "\xE2\x80\xA2",
		"\x96" => "\xE2\x80\x93",
		"\x97" => "\xE2\x80\x94",
		"\x98" => "\xDA\xA9",
		"\x99" => "\xE2\x84\xA2",
		"\x9A" => "\xDA\x91",
		"\x9B" => "\xE2\x80\xBA",
		"\x9C" => "\xC5\x93",
		"\x9D" => "\xE2\x80\x8C",
		"\x9E" => "\xE2\x80\x8D",
		"\x9F" => "\xDA\xBA",
		"\xA0" => "\xC2\xA0",
		"\xA1" => "\xD8\x8C",
		"\xA2" => "\xC2\xA2",
		"\xA3" => "\xC2\xA3",
		"\xA4" => "\xC2\xA4",
		"\xA5" => "\xC2\xA5",
		"\xA6" => "\xC2\xA6",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xC2\xA8",
		"\xA9" => "\xC2\xA9",
		"\xAA" => "\xDA\xBE",
		"\xAB" => "\xC2\xAB",
		"\xAC" => "\xC2\xAC",
		"\xAD" => "\xC2\xAD",
		"\xAE" => "\xC2\xAE",
		"\xAF" => "\xC2\xAF",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC2\xB1",
		"\xB2" => "\xC2\xB2",
		"\xB3" => "\xC2\xB3",
		"\xB4" => "\xC2\xB4",
		"\xB5" => "\xC2\xB5",
		"\xB6" => "\xC2\xB6",
		"\xB7" => "\xC2\xB7",
		"\xB8" => "\xC2\xB8",
		"\xB9" => "\xC2\xB9",
		"\xBA" => "\xD8\x9B",
		"\xBB" => "\xC2\xBB",
		"\xBC" => "\xC2\xBC",
		"\xBD" => "\xC2\xBD",
		"\xBE" => "\xC2\xBE",
		"\xBF" => "\xD8\x9F",
		"\xC0" => "\xDB\x81",
		"\xC1" => "\xD8\xA1",
		"\xC2" => "\xD8\xA2",
		"\xC3" => "\xD8\xA3",
		"\xC4" => "\xD8\xA4",
		"\xC5" => "\xD8\xA5",
		"\xC6" => "\xD8\xA6",
		"\xC7" => "\xD8\xA7",
		"\xC8" => "\xD8\xA8",
		"\xC9" => "\xD8\xA9",
		"\xCA" => "\xD8\xAA",
		"\xCB" => "\xD8\xAB",
		"\xCC" => "\xD8\xAC",
		"\xCD" => "\xD8\xAD",
		"\xCE" => "\xD8\xAE",
		"\xCF" => "\xD8\xAF",
		"\xD0" => "\xD8\xB0",
		"\xD1" => "\xD8\xB1",
		"\xD2" => "\xD8\xB2",
		"\xD3" => "\xD8\xB3",
		"\xD4" => "\xD8\xB4",
		"\xD5" => "\xD8\xB5",
		"\xD6" => "\xD8\xB6",
		"\xD7" => "\xC3\x97",
		"\xD8" => "\xD8\xB7",
		"\xD9" => "\xD8\xB8",
		"\xDA" => "\xD8\xB9",
		"\xDB" => "\xD8\xBA",
		"\xDC" => "\xD9\x80",
		"\xDD" => "\xD9\x81",
		"\xDE" => "\xD9\x82",
		"\xDF" => "\xD9\x83",
		"\xE0" => "\xC3\xA0",
		"\xE1" => "\xD9\x84",
		"\xE2" => "\xC3\xA2",
		"\xE3" => "\xD9\x85",
		"\xE4" => "\xD9\x86",
		"\xE5" => "\xD9\x87",
		"\xE6" => "\xD9\x88",
		"\xE7" => "\xC3\xA7",
		"\xE8" => "\xC3\xA8",
		"\xE9" => "\xC3\xA9",
		"\xEA" => "\xC3\xAA",
		"\xEB" => "\xC3\xAB",
		"\xEC" => "\xD9\x89",
		"\xED" => "\xD9\x8A",
		"\xEE" => "\xC3\xAE",
		"\xEF" => "\xC3\xAF",
		"\xF0" => "\xD9\x8B",
		"\xF1" => "\xD9\x8C",
		"\xF2" => "\xD9\x8D",
		"\xF3" => "\xD9\x8E",
		"\xF4" => "\xC3\xB4",
		"\xF5" => "\xD9\x8F",
		"\xF6" => "\xD9\x90",
		"\xF7" => "\xC3\xB7",
		"\xF8" => "\xD9\x91",
		"\xF9" => "\xC3\xB9",
		"\xFA" => "\xD9\x92",
		"\xFB" => "\xC3\xBB",
		"\xFC" => "\xC3\xBC",
		"\xFD" => "\xE2\x80\x8E",
		"\xFE" => "\xE2\x80\x8F",
		"\xFF" => "\xDB\x92",
	);
	return strtr($string, $transform);
}

function cp1257($string)
{
	static $transform = array(
		"\x80" => "\xE2\x82\xAC",
		"\x82" => "\xE2\x80\x9A",
		"\x84" => "\xE2\x80\x9E",
		"\x85" => "\xE2\x80\xA6",
		"\x86" => "\xE2\x80\xA0",
		"\x87" => "\xE2\x80\xA1",
		"\x89" => "\xE2\x80\xB0",
		"\x8B" => "\xE2\x80\xB9",
		"\x8D" => "\xC2\xA8",
		"\x8E" => "\xCB\x87",
		"\x8F" => "\xC2\xB8",
		"\x91" => "\xE2\x80\x98",
		"\x92" => "\xE2\x80\x99",
		"\x93" => "\xE2\x80\x9C",
		"\x94" => "\xE2\x80\x9D",
		"\x95" => "\xE2\x80\xA2",
		"\x96" => "\xE2\x80\x93",
		"\x97" => "\xE2\x80\x94",
		"\x99" => "\xE2\x84\xA2",
		"\x9B" => "\xE2\x80\xBA",
		"\x9D" => "\xC2\xAF",
		"\x9E" => "\xCB\x9B",
		"\xA0" => "\xC2\xA0",
		"\xA2" => "\xC2\xA2",
		"\xA3" => "\xC2\xA3",
		"\xA4" => "\xC2\xA4",
		"\xA6" => "\xC2\xA6",
		"\xA7" => "\xC2\xA7",
		"\xA8" => "\xC3\x98",
		"\xA9" => "\xC2\xA9",
		"\xAA" => "\xC5\x96",
		"\xAB" => "\xC2\xAB",
		"\xAC" => "\xC2\xAC",
		"\xAD" => "\xC2\xAD",
		"\xAE" => "\xC2\xAE",
		"\xAF" => "\xC3\x86",
		"\xB0" => "\xC2\xB0",
		"\xB1" => "\xC2\xB1",
		"\xB2" => "\xC2\xB2",
		"\xB3" => "\xC2\xB3",
		"\xB4" => "\xC2\xB4",
		"\xB5" => "\xC2\xB5",
		"\xB6" => "\xC2\xB6",
		"\xB7" => "\xC2\xB7",
		"\xB8" => "\xC3\xB8",
		"\xB9" => "\xC2\xB9",
		"\xBA" => "\xC5\x97",
		"\xBB" => "\xC2\xBB",
		"\xBC" => "\xC2\xBC",
		"\xBD" => "\xC2\xBD",
		"\xBE" => "\xC2\xBE",
		"\xBF" => "\xC3\xA6",
		"\xC0" => "\xC4\x84",
		"\xC1" => "\xC4\xAE",
		"\xC2" => "\xC4\x80",
		"\xC3" => "\xC4\x86",
		"\xC4" => "\xC3\x84",
		"\xC5" => "\xC3\x85",
		"\xC6" => "\xC4\x98",
		"\xC7" => "\xC4\x92",
		"\xC8" => "\xC4\x8C",
		"\xC9" => "\xC3\x89",
		"\xCA" => "\xC5\xB9",
		"\xCB" => "\xC4\x96",
		"\xCC" => "\xC4\xA2",
		"\xCD" => "\xC4\xB6",
		"\xCE" => "\xC4\xAA",
		"\xCF" => "\xC4\xBB",
		"\xD0" => "\xC5\xA0",
		"\xD1" => "\xC5\x83",
		"\xD2" => "\xC5\x85",
		"\xD3" => "\xC3\x93",
		"\xD4" => "\xC5\x8C",
		"\xD5" => "\xC3\x95",
		"\xD6" => "\xC3\x96",
		"\xD7" => "\xC3\x97",
		"\xD8" => "\xC5\xB2",
		"\xD9" => "\xC5\x81",
		"\xDA" => "\xC5\x9A",
		"\xDB" => "\xC5\xAA",
		"\xDC" => "\xC3\x9C",
		"\xDD" => "\xC5\xBB",
		"\xDE" => "\xC5\xBD",
		"\xDF" => "\xC3\x9F",
		"\xE0" => "\xC4\x85",
		"\xE1" => "\xC4\xAF",
		"\xE2" => "\xC4\x81",
		"\xE3" => "\xC4\x87",
		"\xE4" => "\xC3\xA4",
		"\xE5" => "\xC3\xA5",
		"\xE6" => "\xC4\x99",
		"\xE7" => "\xC4\x93",
		"\xE8" => "\xC4\x8D",
		"\xE9" => "\xC3\xA9",
		"\xEA" => "\xC5\xBA",
		"\xEB" => "\xC4\x97",
		"\xEC" => "\xC4\xA3",
		"\xED" => "\xC4\xB7",
		"\xEE" => "\xC4\xAB",
		"\xEF" => "\xC4\xBC",
		"\xF0" => "\xC5\xA1",
		"\xF1" => "\xC5\x84",
		"\xF2" => "\xC5\x86",
		"\xF3" => "\xC3\xB3",
		"\xF4" => "\xC5\x8D",
		"\xF5" => "\xC3\xB5",
		"\xF6" => "\xC3\xB6",
		"\xF7" => "\xC3\xB7",
		"\xF8" => "\xC5\xB3",
		"\xF9" => "\xC5\x82",
		"\xFA" => "\xC5\x9B",
		"\xFB" => "\xC5\xAB",
		"\xFC" => "\xC3\xBC",
		"\xFD" => "\xC5\xBC",
		"\xFE" => "\xC5\xBE",
		"\xFF" => "\xCB\x99",
	);
	return strtr($string, $transform);
}

function utf8_to_cp1252($string)
{
	static $transform = array(
		"\xE2\x82\xAC" => "\x80",
		"\xE2\x80\x9A" => "\x82",
		"\xC6\x92" => "\x83",
		"\xE2\x80\x9E" => "\x84",
		"\xE2\x80\xA6" => "\x85",
		"\xE2\x80\xA0" => "\x86",
		"\xE2\x80\xA1" => "\x87",
		"\xCB\x86" => "\x88",
		"\xE2\x80\xB0" => "\x89",
		"\xC5\xA0" => "\x8A",
		"\xE2\x80\xB9" => "\x8B",
		"\xC5\x92" => "\x8C",
		"\xC5\xBD" => "\x8E",
		"\xE2\x80\x98" => "\x91",
		"\xE2\x80\x99" => "\x92",
		"\xE2\x80\x9C" => "\x93",
		"\xE2\x80\x9D" => "\x94",
		"\xE2\x80\xA2" => "\x95",
		"\xE2\x80\x93" => "\x96",
		"\xE2\x80\x94" => "\x97",
		"\xCB\x9C" => "\x98",
		"\xE2\x84\xA2" => "\x99",
		"\xC5\xA1" => "\x9A",
		"\xE2\x80\xBA" => "\x9B",
		"\xC5\x93" => "\x9C",
		"\xC5\xBE" => "\x9E",
		"\xC5\xB8" => "\x9F",
		"\xC2\xA0" => "\xA0",
		"\xC2\xA1" => "\xA1",
		"\xC2\xA2" => "\xA2",
		"\xC2\xA3" => "\xA3",
		"\xC2\xA4" => "\xA4",
		"\xC2\xA5" => "\xA5",
		"\xC2\xA6" => "\xA6",
		"\xC2\xA7" => "\xA7",
		"\xC2\xA8" => "\xA8",
		"\xC2\xA9" => "\xA9",
		"\xC2\xAA" => "\xAA",
		"\xC2\xAB" => "\xAB",
		"\xC2\xAC" => "\xAC",
		"\xC2\xAD" => "\xAD",
		"\xC2\xAE" => "\xAE",
		"\xC2\xAF" => "\xAF",
		"\xC2\xB0" => "\xB0",
		"\xC2\xB1" => "\xB1",
		"\xC2\xB2" => "\xB2",
		"\xC2\xB3" => "\xB3",
		"\xC2\xB4" => "\xB4",
		"\xC2\xB5" => "\xB5",
		"\xC2\xB6" => "\xB6",
		"\xC2\xB7" => "\xB7",
		"\xC2\xB8" => "\xB8",
		"\xC2\xB9" => "\xB9",
		"\xC2\xBA" => "\xBA",
		"\xC2\xBB" => "\xBB",
		"\xC2\xBC" => "\xBC",
		"\xC2\xBD" => "\xBD",
		"\xC2\xBE" => "\xBE",
		"\xC2\xBF" => "\xBF",
		"\xC3\x80" => "\xC0",
		"\xC3\x81" => "\xC1",
		"\xC3\x82" => "\xC2",
		"\xC3\x83" => "\xC3",
		"\xC3\x84" => "\xC4",
		"\xC3\x85" => "\xC5",
		"\xC3\x86" => "\xC6",
		"\xC3\x87" => "\xC7",
		"\xC3\x88" => "\xC8",
		"\xC3\x89" => "\xC9",
		"\xC3\x8A" => "\xCA",
		"\xC3\x8B" => "\xCB",
		"\xC3\x8C" => "\xCC",
		"\xC3\x8D" => "\xCD",
		"\xC3\x8E" => "\xCE",
		"\xC3\x8F" => "\xCF",
		"\xC3\x90" => "\xD0",
		"\xC3\x91" => "\xD1",
		"\xC3\x92" => "\xD2",
		"\xC3\x93" => "\xD3",
		"\xC3\x94" => "\xD4",
		"\xC3\x95" => "\xD5",
		"\xC3\x96" => "\xD6",
		"\xC3\x97" => "\xD7",
		"\xC3\x98" => "\xD8",
		"\xC3\x99" => "\xD9",
		"\xC3\x9A" => "\xDA",
		"\xC3\x9B" => "\xDB",
		"\xC3\x9C" => "\xDC",
		"\xC3\x9D" => "\xDD",
		"\xC3\x9E" => "\xDE",
		"\xC3\x9F" => "\xDF",
		"\xC3\xA0" => "\xE0",
		"\xC3\xA1" => "\xE1",
		"\xC3\xA2" => "\xE2",
		"\xC3\xA3" => "\xE3",
		"\xC3\xA4" => "\xE4",
		"\xC3\xA5" => "\xE5",
		"\xC3\xA6" => "\xE6",
		"\xC3\xA7" => "\xE7",
		"\xC3\xA8" => "\xE8",
		"\xC3\xA9" => "\xE9",
		"\xC3\xAA" => "\xEA",
		"\xC3\xAB" => "\xEB",
		"\xC3\xAC" => "\xEC",
		"\xC3\xAD" => "\xED",
		"\xC3\xAE" => "\xEE",
		"\xC3\xAF" => "\xEF",
		"\xC3\xB0" => "\xF0",
		"\xC3\xB1" => "\xF1",
		"\xC3\xB2" => "\xF2",
		"\xC3\xB3" => "\xF3",
		"\xC3\xB4" => "\xF4",
		"\xC3\xB5" => "\xF5",
		"\xC3\xB6" => "\xF6",
		"\xC3\xB7" => "\xF7",
		"\xC3\xB8" => "\xF8",
		"\xC3\xB9" => "\xF9",
		"\xC3\xBA" => "\xFA",
		"\xC3\xBB" => "\xFB",
		"\xC3\xBC" => "\xFC",
		"\xC3\xBD" => "\xFD",
		"\xC3\xBE" => "\xFE",
		"\xC3\xBF" => "\xFF"
	);
	return strtr($string, $transform);
}

?>