Вход Регистрация
Файл: phpBB3/includes/utf/data/recode_basic.php
Строк: 125
<?php
function iso_8859_1($string)
{
    return 
utf8_encode($string);
}

function 
iso_8859_2($string)
{
    static 
$transform = array(
        
"x80" => "xC2x80",
        
"x81" => "xC2x81",
        
"x82" => "xC2x82",
        
"x83" => "xC2x83",
        
"x84" => "xC2x84",
        
"x85" => "xC2x85",
        
"x86" => "xC2x86",
        
"x87" => "xC2x87",
        
"x88" => "xC2x88",
        
"x89" => "xC2x89",
        
"x8A" => "xC2x8A",
        
"x8B" => "xC2x8B",
        
"x8C" => "xC2x8C",
        
"x8D" => "xC2x8D",
        
"x8E" => "xC2x8E",
        
"x8F" => "xC2x8F",
        
"x90" => "xC2x90",
        
"x91" => "xC2x91",
        
"x92" => "xC2x92",
        
"x93" => "xC2x93",
        
"x94" => "xC2x94",
        
"x95" => "xC2x95",
        
"x96" => "xC2x96",
        
"x97" => "xC2x97",
        
"x98" => "xC2x98",
        
"x99" => "xC2x99",
        
"x9A" => "xC2x9A",
        
"x9B" => "xC2x9B",
        
"x9C" => "xC2x9C",
        
"x9D" => "xC2x9D",
        
"x9E" => "xC2x9E",
        
"x9F" => "xC2x9F",
        
"xA0" => "xC2xA0",
        
"xA1" => "xC4x84",
        
"xA2" => "xCBx98",
        
"xA3" => "xC5x81",
        
"xA4" => "xC2xA4",
        
"xA5" => "xC4xBD",
        
"xA6" => "xC5x9A",
        
"xA7" => "xC2xA7",
        
"xA8" => "xC2xA8",
        
"xA9" => "xC5xA0",
        
"xAA" => "xC5x9E",
        
"xAB" => "xC5xA4",
        
"xAC" => "xC5xB9",
        
"xAD" => "xC2xAD",
        
"xAE" => "xC5xBD",
        
"xAF" => "xC5xBB",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC4x85",
        
"xB2" => "xCBx9B",
        
"xB3" => "xC5x82",
        
"xB4" => "xC2xB4",
        
"xB5" => "xC4xBE",
        
"xB6" => "xC5x9B",
        
"xB7" => "xCBx87",
        
"xB8" => "xC2xB8",
        
"xB9" => "xC5xA1",
        
"xBA" => "xC5x9F",
        
"xBB" => "xC5xA5",
        
"xBC" => "xC5xBA",
        
"xBD" => "xCBx9D",
        
"xBE" => "xC5xBE",
        
"xBF" => "xC5xBC",
        
"xC0" => "xC5x94",
        
"xC1" => "xC3x81",
        
"xC2" => "xC3x82",
        
"xC3" => "xC4x82",
        
"xC4" => "xC3x84",
        
"xC5" => "xC4xB9",
        
"xC6" => "xC4x86",
        
"xC7" => "xC3x87",
        
"xC8" => "xC4x8C",
        
"xC9" => "xC3x89",
        
"xCA" => "xC4x98",
        
"xCB" => "xC3x8B",
        
"xCC" => "xC4x9A",
        
"xCD" => "xC3x8D",
        
"xCE" => "xC3x8E",
        
"xCF" => "xC4x8E",
        
"xD0" => "xC4x90",
        
"xD1" => "xC5x83",
        
"xD2" => "xC5x87",
        
"xD3" => "xC3x93",
        
"xD4" => "xC3x94",
        
"xD5" => "xC5x90",
        
"xD6" => "xC3x96",
        
"xD7" => "xC3x97",
        
"xD8" => "xC5x98",
        
"xD9" => "xC5xAE",
        
"xDA" => "xC3x9A",
        
"xDB" => "xC5xB0",
        
"xDC" => "xC3x9C",
        
"xDD" => "xC3x9D",
        
"xDE" => "xC5xA2",
        
"xDF" => "xC3x9F",
        
"xE0" => "xC5x95",
        
"xE1" => "xC3xA1",
        
"xE2" => "xC3xA2",
        
"xE3" => "xC4x83",
        
"xE4" => "xC3xA4",
        
"xE5" => "xC4xBA",
        
"xE6" => "xC4x87",
        
"xE7" => "xC3xA7",
        
"xE8" => "xC4x8D",
        
"xE9" => "xC3xA9",
        
"xEA" => "xC4x99",
        
"xEB" => "xC3xAB",
        
"xEC" => "xC4x9B",
        
"xED" => "xC3xAD",
        
"xEE" => "xC3xAE",
        
"xEF" => "xC4x8F",
        
"xF0" => "xC4x91",
        
"xF1" => "xC5x84",
        
"xF2" => "xC5x88",
        
"xF3" => "xC3xB3",
        
"xF4" => "xC3xB4",
        
"xF5" => "xC5x91",
        
"xF6" => "xC3xB6",
        
"xF7" => "xC3xB7",
        
"xF8" => "xC5x99",
        
"xF9" => "xC5xAF",
        
"xFA" => "xC3xBA",
        
"xFB" => "xC5xB1",
        
"xFC" => "xC3xBC",
        
"xFD" => "xC3xBD",
        
"xFE" => "xC5xA3",
        
"xFF" => "xCBx99",
    );
    return 
strtr($string$transform);
}

function 
iso_8859_4($string)
{
    static 
$transform = array(
        
"x80" => "xC2x80",
        
"x81" => "xC2x81",
        
"x82" => "xC2x82",
        
"x83" => "xC2x83",
        
"x84" => "xC2x84",
        
"x85" => "xC2x85",
        
"x86" => "xC2x86",
        
"x87" => "xC2x87",
        
"x88" => "xC2x88",
        
"x89" => "xC2x89",
        
"x8A" => "xC2x8A",
        
"x8B" => "xC2x8B",
        
"x8C" => "xC2x8C",
        
"x8D" => "xC2x8D",
        
"x8E" => "xC2x8E",
        
"x8F" => "xC2x8F",
        
"x90" => "xC2x90",
        
"x91" => "xC2x91",
        
"x92" => "xC2x92",
        
"x93" => "xC2x93",
        
"x94" => "xC2x94",
        
"x95" => "xC2x95",
        
"x96" => "xC2x96",
        
"x97" => "xC2x97",
        
"x98" => "xC2x98",
        
"x99" => "xC2x99",
        
"x9A" => "xC2x9A",
        
"x9B" => "xC2x9B",
        
"x9C" => "xC2x9C",
        
"x9D" => "xC2x9D",
        
"x9E" => "xC2x9E",
        
"x9F" => "xC2x9F",
        
"xA0" => "xC2xA0",
        
"xA1" => "xC4x84",
        
"xA2" => "xC4xB8",
        
"xA3" => "xC5x96",
        
"xA4" => "xC2xA4",
        
"xA5" => "xC4xA8",
        
"xA6" => "xC4xBB",
        
"xA7" => "xC2xA7",
        
"xA8" => "xC2xA8",
        
"xA9" => "xC5xA0",
        
"xAA" => "xC4x92",
        
"xAB" => "xC4xA2",
        
"xAC" => "xC5xA6",
        
"xAD" => "xC2xAD",
        
"xAE" => "xC5xBD",
        
"xAF" => "xC2xAF",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC4x85",
        
"xB2" => "xCBx9B",
        
"xB3" => "xC5x97",
        
"xB4" => "xC2xB4",
        
"xB5" => "xC4xA9",
        
"xB6" => "xC4xBC",
        
"xB7" => "xCBx87",
        
"xB8" => "xC2xB8",
        
"xB9" => "xC5xA1",
        
"xBA" => "xC4x93",
        
"xBB" => "xC4xA3",
        
"xBC" => "xC5xA7",
        
"xBD" => "xC5x8A",
        
"xBE" => "xC5xBE",
        
"xBF" => "xC5x8B",
        
"xC0" => "xC4x80",
        
"xC1" => "xC3x81",
        
"xC2" => "xC3x82",
        
"xC3" => "xC3x83",
        
"xC4" => "xC3x84",
        
"xC5" => "xC3x85",
        
"xC6" => "xC3x86",
        
"xC7" => "xC4xAE",
        
"xC8" => "xC4x8C",
        
"xC9" => "xC3x89",
        
"xCA" => "xC4x98",
        
"xCB" => "xC3x8B",
        
"xCC" => "xC4x96",
        
"xCD" => "xC3x8D",
        
"xCE" => "xC3x8E",
        
"xCF" => "xC4xAA",
        
"xD0" => "xC4x90",
        
"xD1" => "xC5x85",
        
"xD2" => "xC5x8C",
        
"xD3" => "xC4xB6",
        
"xD4" => "xC3x94",
        
"xD5" => "xC3x95",
        
"xD6" => "xC3x96",
        
"xD7" => "xC3x97",
        
"xD8" => "xC3x98",
        
"xD9" => "xC5xB2",
        
"xDA" => "xC3x9A",
        
"xDB" => "xC3x9B",
        
"xDC" => "xC3x9C",
        
"xDD" => "xC5xA8",
        
"xDE" => "xC5xAA",
        
"xDF" => "xC3x9F",
        
"xE0" => "xC4x81",
        
"xE1" => "xC3xA1",
        
"xE2" => "xC3xA2",
        
"xE3" => "xC3xA3",
        
"xE4" => "xC3xA4",
        
"xE5" => "xC3xA5",
        
"xE6" => "xC3xA6",
        
"xE7" => "xC4xAF",
        
"xE8" => "xC4x8D",
        
"xE9" => "xC3xA9",
        
"xEA" => "xC4x99",
        
"xEB" => "xC3xAB",
        
"xEC" => "xC4x97",
        
"xED" => "xC3xAD",
        
"xEE" => "xC3xAE",
        
"xEF" => "xC4xAB",
        
"xF0" => "xC4x91",
        
"xF1" => "xC5x86",
        
"xF2" => "xC5x8D",
        
"xF3" => "xC4xB7",
        
"xF4" => "xC3xB4",
        
"xF5" => "xC3xB5",
        
"xF6" => "xC3xB6",
        
"xF7" => "xC3xB7",
        
"xF8" => "xC3xB8",
        
"xF9" => "xC5xB3",
        
"xFA" => "xC3xBA",
        
"xFB" => "xC3xBB",
        
"xFC" => "xC3xBC",
        
"xFD" => "xC5xA9",
        
"xFE" => "xC5xAB",
        
"xFF" => "xCBx99",
    );
    return 
strtr($string$transform);
}

function 
iso_8859_7($string)
{
    static 
$transform = array(
        
"x80" => "xC2x80",
        
"x81" => "xC2x81",
        
"x82" => "xC2x82",
        
"x83" => "xC2x83",
        
"x84" => "xC2x84",
        
"x85" => "xC2x85",
        
"x86" => "xC2x86",
        
"x87" => "xC2x87",
        
"x88" => "xC2x88",
        
"x89" => "xC2x89",
        
"x8A" => "xC2x8A",
        
"x8B" => "xC2x8B",
        
"x8C" => "xC2x8C",
        
"x8D" => "xC2x8D",
        
"x8E" => "xC2x8E",
        
"x8F" => "xC2x8F",
        
"x90" => "xC2x90",
        
"x91" => "xC2x91",
        
"x92" => "xC2x92",
        
"x93" => "xC2x93",
        
"x94" => "xC2x94",
        
"x95" => "xC2x95",
        
"x96" => "xC2x96",
        
"x97" => "xC2x97",
        
"x98" => "xC2x98",
        
"x99" => "xC2x99",
        
"x9A" => "xC2x9A",
        
"x9B" => "xC2x9B",
        
"x9C" => "xC2x9C",
        
"x9D" => "xC2x9D",
        
"x9E" => "xC2x9E",
        
"x9F" => "xC2x9F",
        
"xA0" => "xC2xA0",
        
"xA1" => "xE2x80x98",
        
"xA2" => "xE2x80x99",
        
"xA3" => "xC2xA3",
        
"xA4" => "xE2x82xAC",
        
"xA5" => "xE2x82xAF",
        
"xA6" => "xC2xA6",
        
"xA7" => "xC2xA7",
        
"xA8" => "xC2xA8",
        
"xA9" => "xC2xA9",
        
"xAA" => "xCDxBA",
        
"xAB" => "xC2xAB",
        
"xAC" => "xC2xAC",
        
"xAD" => "xC2xAD",
        
"xAF" => "xE2x80x95",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC2xB1",
        
"xB2" => "xC2xB2",
        
"xB3" => "xC2xB3",
        
"xB4" => "xCEx84",
        
"xB5" => "xCEx85",
        
"xB6" => "xCEx86",
        
"xB7" => "xC2xB7",
        
"xB8" => "xCEx88",
        
"xB9" => "xCEx89",
        
"xBA" => "xCEx8A",
        
"xBB" => "xC2xBB",
        
"xBC" => "xCEx8C",
        
"xBD" => "xC2xBD",
        
"xBE" => "xCEx8E",
        
"xBF" => "xCEx8F",
        
"xC0" => "xCEx90",
        
"xC1" => "xCEx91",
        
"xC2" => "xCEx92",
        
"xC3" => "xCEx93",
        
"xC4" => "xCEx94",
        
"xC5" => "xCEx95",
        
"xC6" => "xCEx96",
        
"xC7" => "xCEx97",
        
"xC8" => "xCEx98",
        
"xC9" => "xCEx99",
        
"xCA" => "xCEx9A",
        
"xCB" => "xCEx9B",
        
"xCC" => "xCEx9C",
        
"xCD" => "xCEx9D",
        
"xCE" => "xCEx9E",
        
"xCF" => "xCEx9F",
        
"xD0" => "xCExA0",
        
"xD1" => "xCExA1",
        
"xD3" => "xCExA3",
        
"xD4" => "xCExA4",
        
"xD5" => "xCExA5",
        
"xD6" => "xCExA6",
        
"xD7" => "xCExA7",
        
"xD8" => "xCExA8",
        
"xD9" => "xCExA9",
        
"xDA" => "xCExAA",
        
"xDB" => "xCExAB",
        
"xDC" => "xCExAC",
        
"xDD" => "xCExAD",
        
"xDE" => "xCExAE",
        
"xDF" => "xCExAF",
        
"xE0" => "xCExB0",
        
"xE1" => "xCExB1",
        
"xE2" => "xCExB2",
        
"xE3" => "xCExB3",
        
"xE4" => "xCExB4",
        
"xE5" => "xCExB5",
        
"xE6" => "xCExB6",
        
"xE7" => "xCExB7",
        
"xE8" => "xCExB8",
        
"xE9" => "xCExB9",
        
"xEA" => "xCExBA",
        
"xEB" => "xCExBB",
        
"xEC" => "xCExBC",
        
"xED" => "xCExBD",
        
"xEE" => "xCExBE",
        
"xEF" => "xCExBF",
        
"xF0" => "xCFx80",
        
"xF1" => "xCFx81",
        
"xF2" => "xCFx82",
        
"xF3" => "xCFx83",
        
"xF4" => "xCFx84",
        
"xF5" => "xCFx85",
        
"xF6" => "xCFx86",
        
"xF7" => "xCFx87",
        
"xF8" => "xCFx88",
        
"xF9" => "xCFx89",
        
"xFA" => "xCFx8A",
        
"xFB" => "xCFx8B",
        
"xFC" => "xCFx8C",
        
"xFD" => "xCFx8D",
        
"xFE" => "xCFx8E",
    );
    return 
strtr($string$transform);
}

function 
iso_8859_8($string)
{
    static 
$transform = array(
        
"xC2xAA" => "xC3x97",
        
"xC2xBA" => "xC3xB7",
        
"xC3x9F" => "xE2x80x97",
        
"xC3xA0" => "xD7x90",
        
"xC3xA1" => "xD7x91",
        
"xC3xA2" => "xD7x92",
        
"xC3xA3" => "xD7x93",
        
"xC3xA4" => "xD7x94",
        
"xC3xA5" => "xD7x95",
        
"xC3xA6" => "xD7x96",
        
"xC3xA7" => "xD7x97",
        
"xC3xA8" => "xD7x98",
        
"xC3xA9" => "xD7x99",
        
"xC3xAA" => "xD7x9A",
        
"xC3xAB" => "xD7x9B",
        
"xC3xAC" => "xD7x9C",
        
"xC3xAD" => "xD7x9D",
        
"xC3xAE" => "xD7x9E",
        
"xC3xAF" => "xD7x9F",
        
"xC3xB0" => "xD7xA0",
        
"xC3xB1" => "xD7xA1",
        
"xC3xB2" => "xD7xA2",
        
"xC3xB3" => "xD7xA3",
        
"xC3xB4" => "xD7xA4",
        
"xC3xB5" => "xD7xA5",
        
"xC3xB6" => "xD7xA6",
        
"xC3xB7" => "xD7xA7",
        
"xC3xB8" => "xD7xA8",
        
"xC3xB9" => "xD7xA9",
        
"xC3xBA" => "xD7xAA",
        
"xC3xBD" => "xE2x80x8E",
        
"xC3xBE" => "xE2x80x8F",
    );
    return 
strtr(utf8_encode($string), $transform);
}

function 
iso_8859_9($string)
{
    static 
$transform = array(
        
"xC3x90" => "xC4x9E",
        
"xC3x9D" => "xC4xB0",
        
"xC3x9E" => "xC5x9E",
        
"xC3xB0" => "xC4x9F",
        
"xC3xBD" => "xC4xB1",
        
"xC3xBE" => "xC5x9F",
    );
    return 
strtr(utf8_encode($string), $transform);
}

function 
iso_8859_15($string)
{
    static 
$transform = array(
        
"xC2xA4" => "xE2x82xAC",
        
"xC2xA6" => "xC5xA0",
        
"xC2xA8" => "xC5xA1",
        
"xC2xB4" => "xC5xBD",
        
"xC2xB8" => "xC5xBE",
        
"xC2xBC" => "xC5x92",
        
"xC2xBD" => "xC5x93",
        
"xC2xBE" => "xC5xB8",
    );
    return 
strtr(utf8_encode($string), $transform);
}

// nearly the same as iso-8859-11
function tis_620($string)
{
    static 
$transform = array(
        
"x80" => "xC2x80",
        
"x81" => "xC2x81",
        
"x82" => "xC2x82",
        
"x83" => "xC2x83",
        
"x84" => "xC2x84",
        
"x85" => "xC2x85",
        
"x86" => "xC2x86",
        
"x87" => "xC2x87",
        
"x88" => "xC2x88",
        
"x89" => "xC2x89",
        
"x8A" => "xC2x8A",
        
"x8B" => "xC2x8B",
        
"x8C" => "xC2x8C",
        
"x8D" => "xC2x8D",
        
"x8E" => "xC2x8E",
        
"x8F" => "xC2x8F",
        
"x90" => "xC2x90",
        
"x91" => "xC2x91",
        
"x92" => "xC2x92",
        
"x93" => "xC2x93",
        
"x94" => "xC2x94",
        
"x95" => "xC2x95",
        
"x96" => "xC2x96",
        
"x97" => "xC2x97",
        
"x98" => "xC2x98",
        
"x99" => "xC2x99",
        
"x9A" => "xC2x9A",
        
"x9B" => "xC2x9B",
        
"x9C" => "xC2x9C",
        
"x9D" => "xC2x9D",
        
"x9E" => "xC2x9E",
        
"x9F" => "xC2x9F",
        
"xA1" => "xE0xB8x81",
        
"xA2" => "xE0xB8x82",
        
"xA3" => "xE0xB8x83",
        
"xA4" => "xE0xB8x84",
        
"xA5" => "xE0xB8x85",
        
"xA6" => "xE0xB8x86",
        
"xA7" => "xE0xB8x87",
        
"xA8" => "xE0xB8x88",
        
"xA9" => "xE0xB8x89",
        
"xAA" => "xE0xB8x8A",
        
"xAB" => "xE0xB8x8B",
        
"xAC" => "xE0xB8x8C",
        
"xAD" => "xE0xB8x8D",
        
"xAE" => "xE0xB8x8E",
        
"xAF" => "xE0xB8x8F",
        
"xB0" => "xE0xB8x90",
        
"xB1" => "xE0xB8x91",
        
"xB2" => "xE0xB8x92",
        
"xB3" => "xE0xB8x93",
        
"xB4" => "xE0xB8x94",
        
"xB5" => "xE0xB8x95",
        
"xB6" => "xE0xB8x96",
        
"xB7" => "xE0xB8x97",
        
"xB8" => "xE0xB8x98",
        
"xB9" => "xE0xB8x99",
        
"xBA" => "xE0xB8x9A",
        
"xBB" => "xE0xB8x9B",
        
"xBC" => "xE0xB8x9C",
        
"xBD" => "xE0xB8x9D",
        
"xBE" => "xE0xB8x9E",
        
"xBF" => "xE0xB8x9F",
        
"xC0" => "xE0xB8xA0",
        
"xC1" => "xE0xB8xA1",
        
"xC2" => "xE0xB8xA2",
        
"xC3" => "xE0xB8xA3",
        
"xC4" => "xE0xB8xA4",
        
"xC5" => "xE0xB8xA5",
        
"xC6" => "xE0xB8xA6",
        
"xC7" => "xE0xB8xA7",
        
"xC8" => "xE0xB8xA8",
        
"xC9" => "xE0xB8xA9",
        
"xCA" => "xE0xB8xAA",
        
"xCB" => "xE0xB8xAB",
        
"xCC" => "xE0xB8xAC",
        
"xCD" => "xE0xB8xAD",
        
"xCE" => "xE0xB8xAE",
        
"xCF" => "xE0xB8xAF",
        
"xD0" => "xE0xB8xB0",
        
"xD1" => "xE0xB8xB1",
        
"xD2" => "xE0xB8xB2",
        
"xD3" => "xE0xB8xB3",
        
"xD4" => "xE0xB8xB4",
        
"xD5" => "xE0xB8xB5",
        
"xD6" => "xE0xB8xB6",
        
"xD7" => "xE0xB8xB7",
        
"xD8" => "xE0xB8xB8",
        
"xD9" => "xE0xB8xB9",
        
"xDA" => "xE0xB8xBA",
        
"xDF" => "xE0xB8xBF",
        
"xE0" => "xE0xB9x80",
        
"xE1" => "xE0xB9x81",
        
"xE2" => "xE0xB9x82",
        
"xE3" => "xE0xB9x83",
        
"xE4" => "xE0xB9x84",
        
"xE5" => "xE0xB9x85",
        
"xE6" => "xE0xB9x86",
        
"xE7" => "xE0xB9x87",
        
"xE8" => "xE0xB9x88",
        
"xE9" => "xE0xB9x89",
        
"xEA" => "xE0xB9x8A",
        
"xEB" => "xE0xB9x8B",
        
"xEC" => "xE0xB9x8C",
        
"xED" => "xE0xB9x8D",
        
"xEE" => "xE0xB9x8E",
        
"xEF" => "xE0xB9x8F",
        
"xF0" => "xE0xB9x90",
        
"xF1" => "xE0xB9x91",
        
"xF2" => "xE0xB9x92",
        
"xF3" => "xE0xB9x93",
        
"xF4" => "xE0xB9x94",
        
"xF5" => "xE0xB9x95",
        
"xF6" => "xE0xB9x96",
        
"xF7" => "xE0xB9x97",
        
"xF8" => "xE0xB9x98",
        
"xF9" => "xE0xB9x99",
        
"xFA" => "xE0xB9x9A",
        
"xFB" => "xE0xB9x9B",
    );
    return 
strtr($string$transform);
}

function 
cp874($string)
{
    static 
$transform = array(
        
"x80" => "xE2x82xAC",
        
"x85" => "xE2x80xA6",
        
"x91" => "xE2x80x98",
        
"x92" => "xE2x80x99",
        
"x93" => "xE2x80x9C",
        
"x94" => "xE2x80x9D",
        
"x95" => "xE2x80xA2",
        
"x96" => "xE2x80x93",
        
"x97" => "xE2x80x94",
        
"xA0" => "xC2xA0",
        
"xA1" => "xE0xB8x81",
        
"xA2" => "xE0xB8x82",
        
"xA3" => "xE0xB8x83",
        
"xA4" => "xE0xB8x84",
        
"xA5" => "xE0xB8x85",
        
"xA6" => "xE0xB8x86",
        
"xA7" => "xE0xB8x87",
        
"xA8" => "xE0xB8x88",
        
"xA9" => "xE0xB8x89",
        
"xAA" => "xE0xB8x8A",
        
"xAB" => "xE0xB8x8B",
        
"xAC" => "xE0xB8x8C",
        
"xAD" => "xE0xB8x8D",
        
"xAE" => "xE0xB8x8E",
        
"xAF" => "xE0xB8x8F",
        
"xB0" => "xE0xB8x90",
        
"xB1" => "xE0xB8x91",
        
"xB2" => "xE0xB8x92",
        
"xB3" => "xE0xB8x93",
        
"xB4" => "xE0xB8x94",
        
"xB5" => "xE0xB8x95",
        
"xB6" => "xE0xB8x96",
        
"xB7" => "xE0xB8x97",
        
"xB8" => "xE0xB8x98",
        
"xB9" => "xE0xB8x99",
        
"xBA" => "xE0xB8x9A",
        
"xBB" => "xE0xB8x9B",
        
"xBC" => "xE0xB8x9C",
        
"xBD" => "xE0xB8x9D",
        
"xBE" => "xE0xB8x9E",
        
"xBF" => "xE0xB8x9F",
        
"xC0" => "xE0xB8xA0",
        
"xC1" => "xE0xB8xA1",
        
"xC2" => "xE0xB8xA2",
        
"xC3" => "xE0xB8xA3",
        
"xC4" => "xE0xB8xA4",
        
"xC5" => "xE0xB8xA5",
        
"xC6" => "xE0xB8xA6",
        
"xC7" => "xE0xB8xA7",
        
"xC8" => "xE0xB8xA8",
        
"xC9" => "xE0xB8xA9",
        
"xCA" => "xE0xB8xAA",
        
"xCB" => "xE0xB8xAB",
        
"xCC" => "xE0xB8xAC",
        
"xCD" => "xE0xB8xAD",
        
"xCE" => "xE0xB8xAE",
        
"xCF" => "xE0xB8xAF",
        
"xD0" => "xE0xB8xB0",
        
"xD1" => "xE0xB8xB1",
        
"xD2" => "xE0xB8xB2",
        
"xD3" => "xE0xB8xB3",
        
"xD4" => "xE0xB8xB4",
        
"xD5" => "xE0xB8xB5",
        
"xD6" => "xE0xB8xB6",
        
"xD7" => "xE0xB8xB7",
        
"xD8" => "xE0xB8xB8",
        
"xD9" => "xE0xB8xB9",
        
"xDA" => "xE0xB8xBA",
        
"xDF" => "xE0xB8xBF",
        
"xE0" => "xE0xB9x80",
        
"xE1" => "xE0xB9x81",
        
"xE2" => "xE0xB9x82",
        
"xE3" => "xE0xB9x83",
        
"xE4" => "xE0xB9x84",
        
"xE5" => "xE0xB9x85",
        
"xE6" => "xE0xB9x86",
        
"xE7" => "xE0xB9x87",
        
"xE8" => "xE0xB9x88",
        
"xE9" => "xE0xB9x89",
        
"xEA" => "xE0xB9x8A",
        
"xEB" => "xE0xB9x8B",
        
"xEC" => "xE0xB9x8C",
        
"xED" => "xE0xB9x8D",
        
"xEE" => "xE0xB9x8E",
        
"xEF" => "xE0xB9x8F",
        
"xF0" => "xE0xB9x90",
        
"xF1" => "xE0xB9x91",
        
"xF2" => "xE0xB9x92",
        
"xF3" => "xE0xB9x93",
        
"xF4" => "xE0xB9x94",
        
"xF5" => "xE0xB9x95",
        
"xF6" => "xE0xB9x96",
        
"xF7" => "xE0xB9x97",
        
"xF8" => "xE0xB9x98",
        
"xF9" => "xE0xB9x99",
        
"xFA" => "xE0xB9x9A",
        
"xFB" => "xE0xB9x9B",
    );
    return 
strtr($string$transform);
}

function 
cp1250($string)
{
    static 
$transform = array(
        
"x80" => "xE2x82xAC",
        
"x82" => "xE2x80x9A",
        
"x84" => "xE2x80x9E",
        
"x85" => "xE2x80xA6",
        
"x86" => "xE2x80xA0",
        
"x87" => "xE2x80xA1",
        
"x89" => "xE2x80xB0",
        
"x8A" => "xC5xA0",
        
"x8B" => "xE2x80xB9",
        
"x8C" => "xC5x9A",
        
"x8D" => "xC5xA4",
        
"x8E" => "xC5xBD",
        
"x8F" => "xC5xB9",
        
"x91" => "xE2x80x98",
        
"x92" => "xE2x80x99",
        
"x93" => "xE2x80x9C",
        
"x94" => "xE2x80x9D",
        
"x95" => "xE2x80xA2",
        
"x96" => "xE2x80x93",
        
"x97" => "xE2x80x94",
        
"x99" => "xE2x84xA2",
        
"x9A" => "xC5xA1",
        
"x9B" => "xE2x80xBA",
        
"x9C" => "xC5x9B",
        
"x9D" => "xC5xA5",
        
"x9E" => "xC5xBE",
        
"x9F" => "xC5xBA",
        
"xA0" => "xC2xA0",
        
"xA1" => "xCBx87",
        
"xA2" => "xCBx98",
        
"xA3" => "xC5x81",
        
"xA4" => "xC2xA4",
        
"xA5" => "xC4x84",
        
"xA6" => "xC2xA6",
        
"xA7" => "xC2xA7",
        
"xA8" => "xC2xA8",
        
"xA9" => "xC2xA9",
        
"xAA" => "xC5x9E",
        
"xAB" => "xC2xAB",
        
"xAC" => "xC2xAC",
        
"xAD" => "xC2xAD",
        
"xAE" => "xC2xAE",
        
"xAF" => "xC5xBB",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC2xB1",
        
"xB2" => "xCBx9B",
        
"xB3" => "xC5x82",
        
"xB4" => "xC2xB4",
        
"xB5" => "xC2xB5",
        
"xB6" => "xC2xB6",
        
"xB7" => "xC2xB7",
        
"xB8" => "xC2xB8",
        
"xB9" => "xC4x85",
        
"xBA" => "xC5x9F",
        
"xBB" => "xC2xBB",
        
"xBC" => "xC4xBD",
        
"xBD" => "xCBx9D",
        
"xBE" => "xC4xBE",
        
"xBF" => "xC5xBC",
        
"xC0" => "xC5x94",
        
"xC1" => "xC3x81",
        
"xC2" => "xC3x82",
        
"xC3" => "xC4x82",
        
"xC4" => "xC3x84",
        
"xC5" => "xC4xB9",
        
"xC6" => "xC4x86",
        
"xC7" => "xC3x87",
        
"xC8" => "xC4x8C",
        
"xC9" => "xC3x89",
        
"xCA" => "xC4x98",
        
"xCB" => "xC3x8B",
        
"xCC" => "xC4x9A",
        
"xCD" => "xC3x8D",
        
"xCE" => "xC3x8E",
        
"xCF" => "xC4x8E",
        
"xD0" => "xC4x90",
        
"xD1" => "xC5x83",
        
"xD2" => "xC5x87",
        
"xD3" => "xC3x93",
        
"xD4" => "xC3x94",
        
"xD5" => "xC5x90",
        
"xD6" => "xC3x96",
        
"xD7" => "xC3x97",
        
"xD8" => "xC5x98",
        
"xD9" => "xC5xAE",
        
"xDA" => "xC3x9A",
        
"xDB" => "xC5xB0",
        
"xDC" => "xC3x9C",
        
"xDD" => "xC3x9D",
        
"xDE" => "xC5xA2",
        
"xDF" => "xC3x9F",
        
"xE0" => "xC5x95",
        
"xE1" => "xC3xA1",
        
"xE2" => "xC3xA2",
        
"xE3" => "xC4x83",
        
"xE4" => "xC3xA4",
        
"xE5" => "xC4xBA",
        
"xE6" => "xC4x87",
        
"xE7" => "xC3xA7",
        
"xE8" => "xC4x8D",
        
"xE9" => "xC3xA9",
        
"xEA" => "xC4x99",
        
"xEB" => "xC3xAB",
        
"xEC" => "xC4x9B",
        
"xED" => "xC3xAD",
        
"xEE" => "xC3xAE",
        
"xEF" => "xC4x8F",
        
"xF0" => "xC4x91",
        
"xF1" => "xC5x84",
        
"xF2" => "xC5x88",
        
"xF3" => "xC3xB3",
        
"xF4" => "xC3xB4",
        
"xF5" => "xC5x91",
        
"xF6" => "xC3xB6",
        
"xF7" => "xC3xB7",
        
"xF8" => "xC5x99",
        
"xF9" => "xC5xAF",
        
"xFA" => "xC3xBA",
        
"xFB" => "xC5xB1",
        
"xFC" => "xC3xBC",
        
"xFD" => "xC3xBD",
        
"xFE" => "xC5xA3",
        
"xFF" => "xCBx99",
    );
    return 
strtr($string$transform);
}

function 
cp1251($string)
{
    static 
$transform = array(
        
"x80" => "xD0x82",
        
"x81" => "xD0x83",
        
"x82" => "xE2x80x9A",
        
"x83" => "xD1x93",
        
"x84" => "xE2x80x9E",
        
"x85" => "xE2x80xA6",
        
"x86" => "xE2x80xA0",
        
"x87" => "xE2x80xA1",
        
"x88" => "xE2x82xAC",
        
"x89" => "xE2x80xB0",
        
"x8A" => "xD0x89",
        
"x8B" => "xE2x80xB9",
        
"x8C" => "xD0x8A",
        
"x8D" => "xD0x8C",
        
"x8E" => "xD0x8B",
        
"x8F" => "xD0x8F",
        
"x90" => "xD1x92",
        
"x91" => "xE2x80x98",
        
"x92" => "xE2x80x99",
        
"x93" => "xE2x80x9C",
        
"x94" => "xE2x80x9D",
        
"x95" => "xE2x80xA2",
        
"x96" => "xE2x80x93",
        
"x97" => "xE2x80x94",
        
"x99" => "xE2x84xA2",
        
"x9A" => "xD1x99",
        
"x9B" => "xE2x80xBA",
        
"x9C" => "xD1x9A",
        
"x9D" => "xD1x9C",
        
"x9E" => "xD1x9B",
        
"x9F" => "xD1x9F",
        
"xA0" => "xC2xA0",
        
"xA1" => "xD0x8E",
        
"xA2" => "xD1x9E",
        
"xA3" => "xD0x88",
        
"xA4" => "xC2xA4",
        
"xA5" => "xD2x90",
        
"xA6" => "xC2xA6",
        
"xA7" => "xC2xA7",
        
"xA8" => "xD0x81",
        
"xA9" => "xC2xA9",
        
"xAA" => "xD0x84",
        
"xAB" => "xC2xAB",
        
"xAC" => "xC2xAC",
        
"xAD" => "xC2xAD",
        
"xAE" => "xC2xAE",
        
"xAF" => "xD0x87",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC2xB1",
        
"xB2" => "xD0x86",
        
"xB3" => "xD1x96",
        
"xB4" => "xD2x91",
        
"xB5" => "xC2xB5",
        
"xB6" => "xC2xB6",
        
"xB7" => "xC2xB7",
        
"xB8" => "xD1x91",
        
"xB9" => "xE2x84x96",
        
"xBA" => "xD1x94",
        
"xBB" => "xC2xBB",
        
"xBC" => "xD1x98",
        
"xBD" => "xD0x85",
        
"xBE" => "xD1x95",
        
"xBF" => "xD1x97",
        
"xC0" => "xD0x90",
        
"xC1" => "xD0x91",
        
"xC2" => "xD0x92",
        
"xC3" => "xD0x93",
        
"xC4" => "xD0x94",
        
"xC5" => "xD0x95",
        
"xC6" => "xD0x96",
        
"xC7" => "xD0x97",
        
"xC8" => "xD0x98",
        
"xC9" => "xD0x99",
        
"xCA" => "xD0x9A",
        
"xCB" => "xD0x9B",
        
"xCC" => "xD0x9C",
        
"xCD" => "xD0x9D",
        
"xCE" => "xD0x9E",
        
"xCF" => "xD0x9F",
        
"xD0" => "xD0xA0",
        
"xD1" => "xD0xA1",
        
"xD2" => "xD0xA2",
        
"xD3" => "xD0xA3",
        
"xD4" => "xD0xA4",
        
"xD5" => "xD0xA5",
        
"xD6" => "xD0xA6",
        
"xD7" => "xD0xA7",
        
"xD8" => "xD0xA8",
        
"xD9" => "xD0xA9",
        
"xDA" => "xD0xAA",
        
"xDB" => "xD0xAB",
        
"xDC" => "xD0xAC",
        
"xDD" => "xD0xAD",
        
"xDE" => "xD0xAE",
        
"xDF" => "xD0xAF",
        
"xE0" => "xD0xB0",
        
"xE1" => "xD0xB1",
        
"xE2" => "xD0xB2",
        
"xE3" => "xD0xB3",
        
"xE4" => "xD0xB4",
        
"xE5" => "xD0xB5",
        
"xE6" => "xD0xB6",
        
"xE7" => "xD0xB7",
        
"xE8" => "xD0xB8",
        
"xE9" => "xD0xB9",
        
"xEA" => "xD0xBA",
        
"xEB" => "xD0xBB",
        
"xEC" => "xD0xBC",
        
"xED" => "xD0xBD",
        
"xEE" => "xD0xBE",
        
"xEF" => "xD0xBF",
        
"xF0" => "xD1x80",
        
"xF1" => "xD1x81",
        
"xF2" => "xD1x82",
        
"xF3" => "xD1x83",
        
"xF4" => "xD1x84",
        
"xF5" => "xD1x85",
        
"xF6" => "xD1x86",
        
"xF7" => "xD1x87",
        
"xF8" => "xD1x88",
        
"xF9" => "xD1x89",
        
"xFA" => "xD1x8A",
        
"xFB" => "xD1x8B",
        
"xFC" => "xD1x8C",
        
"xFD" => "xD1x8D",
        
"xFE" => "xD1x8E",
        
"xFF" => "xD1x8F",
    );
    return 
strtr($string$transform);
}

function 
cp1252($string)
{
    static 
$transform = array(
        
"xC2x80" => "xE2x82xAC",
        
"xC2x82" => "xE2x80x9A",
        
"xC2x83" => "xC6x92",
        
"xC2x84" => "xE2x80x9E",
        
"xC2x85" => "xE2x80xA6",
        
"xC2x86" => "xE2x80xA0",
        
"xC2x87" => "xE2x80xA1",
        
"xC2x88" => "xCBx86",
        
"xC2x89" => "xE2x80xB0",
        
"xC2x8A" => "xC5xA0",
        
"xC2x8B" => "xE2x80xB9",
        
"xC2x8C" => "xC5x92",
        
"xC2x8E" => "xC5xBD",
        
"xC2x91" => "xE2x80x98",
        
"xC2x92" => "xE2x80x99",
        
"xC2x93" => "xE2x80x9C",
        
"xC2x94" => "xE2x80x9D",
        
"xC2x95" => "xE2x80xA2",
        
"xC2x96" => "xE2x80x93",
        
"xC2x97" => "xE2x80x94",
        
"xC2x98" => "xCBx9C",
        
"xC2x99" => "xE2x84xA2",
        
"xC2x9A" => "xC5xA1",
        
"xC2x9B" => "xE2x80xBA",
        
"xC2x9C" => "xC5x93",
        
"xC2x9E" => "xC5xBE",
        
"xC2x9F" => "xC5xB8"
    
);
    return 
strtr(utf8_encode($string), $transform);
}

function 
cp1254($string)
{
    static 
$transform = array(
        
"xC2x80" => "xE2x82xAC",
        
"xC2x82" => "xE2x80x9A",
        
"xC2x83" => "xC6x92",
        
"xC2x84" => "xE2x80x9E",
        
"xC2x85" => "xE2x80xA6",
        
"xC2x86" => "xE2x80xA0",
        
"xC2x87" => "xE2x80xA1",
        
"xC2x88" => "xCBx86",
        
"xC2x89" => "xE2x80xB0",
        
"xC2x8A" => "xC5xA0",
        
"xC2x8B" => "xE2x80xB9",
        
"xC2x8C" => "xC5x92",
        
"xC2x91" => "xE2x80x98",
        
"xC2x92" => "xE2x80x99",
        
"xC2x93" => "xE2x80x9C",
        
"xC2x94" => "xE2x80x9D",
        
"xC2x95" => "xE2x80xA2",
        
"xC2x96" => "xE2x80x93",
        
"xC2x97" => "xE2x80x94",
        
"xC2x98" => "xCBx9C",
        
"xC2x99" => "xE2x84xA2",
        
"xC2x9A" => "xC5xA1",
        
"xC2x9B" => "xE2x80xBA",
        
"xC2x9C" => "xC5x93",
        
"xC2x9F" => "xC5xB8",
        
"xC3x90" => "xC4x9E",
        
"xC3x9D" => "xC4xB0",
        
"xC3x9E" => "xC5x9E",
        
"xC3xB0" => "xC4x9F",
        
"xC3xBD" => "xC4xB1",
        
"xC3xBE" => "xC5x9F",
    );
    return 
strtr(utf8_encode($string), $transform);
}

function 
cp1255($string)
{
    static 
$transform = array(
        
"x80" => "xE2x82xAC",
        
"x82" => "xE2x80x9A",
        
"x83" => "xC6x92",
        
"x84" => "xE2x80x9E",
        
"x85" => "xE2x80xA6",
        
"x86" => "xE2x80xA0",
        
"x87" => "xE2x80xA1",
        
"x88" => "xCBx86",
        
"x89" => "xE2x80xB0",
        
"x8B" => "xE2x80xB9",
        
"x91" => "xE2x80x98",
        
"x92" => "xE2x80x99",
        
"x93" => "xE2x80x9C",
        
"x94" => "xE2x80x9D",
        
"x95" => "xE2x80xA2",
        
"x96" => "xE2x80x93",
        
"x97" => "xE2x80x94",
        
"x98" => "xCBx9C",
        
"x99" => "xE2x84xA2",
        
"x9B" => "xE2x80xBA",
        
"xA0" => "xC2xA0",
        
"xA1" => "xC2xA1",
        
"xA2" => "xC2xA2",
        
"xA3" => "xC2xA3",
        
"xA4" => "xE2x82xAA",
        
"xA5" => "xC2xA5",
        
"xA6" => "xC2xA6",
        
"xA7" => "xC2xA7",
        
"xA8" => "xC2xA8",
        
"xA9" => "xC2xA9",
        
"xAA" => "xC3x97",
        
"xAB" => "xC2xAB",
        
"xAC" => "xC2xAC",
        
"xAD" => "xC2xAD",
        
"xAE" => "xC2xAE",
        
"xAF" => "xC2xAF",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC2xB1",
        
"xB2" => "xC2xB2",
        
"xB3" => "xC2xB3",
        
"xB4" => "xC2xB4",
        
"xB5" => "xC2xB5",
        
"xB6" => "xC2xB6",
        
"xB7" => "xC2xB7",
        
"xB8" => "xC2xB8",
        
"xB9" => "xC2xB9",
        
"xBA" => "xC3xB7",
        
"xBB" => "xC2xBB",
        
"xBC" => "xC2xBC",
        
"xBD" => "xC2xBD",
        
"xBE" => "xC2xBE",
        
"xBF" => "xC2xBF",
        
"xC0" => "xD6xB0",
        
"xC1" => "xD6xB1",
        
"xC2" => "xD6xB2",
        
"xC3" => "xD6xB3",
        
"xC4" => "xD6xB4",
        
"xC5" => "xD6xB5",
        
"xC6" => "xD6xB6",
        
"xC7" => "xD6xB7",
        
"xC8" => "xD6xB8",
        
"xC9" => "xD6xB9",
        
"xCB" => "xD6xBB",
        
"xCC" => "xD6xBC",
        
"xCD" => "xD6xBD",
        
"xCE" => "xD6xBE",
        
"xCF" => "xD6xBF",
        
"xD0" => "xD7x80",
        
"xD1" => "xD7x81",
        
"xD2" => "xD7x82",
        
"xD3" => "xD7x83",
        
"xD4" => "xD7xB0",
        
"xD5" => "xD7xB1",
        
"xD6" => "xD7xB2",
        
"xD7" => "xD7xB3",
        
"xD8" => "xD7xB4",
        
"xE0" => "xD7x90",
        
"xE1" => "xD7x91",
        
"xE2" => "xD7x92",
        
"xE3" => "xD7x93",
        
"xE4" => "xD7x94",
        
"xE5" => "xD7x95",
        
"xE6" => "xD7x96",
        
"xE7" => "xD7x97",
        
"xE8" => "xD7x98",
        
"xE9" => "xD7x99",
        
"xEA" => "xD7x9A",
        
"xEB" => "xD7x9B",
        
"xEC" => "xD7x9C",
        
"xED" => "xD7x9D",
        
"xEE" => "xD7x9E",
        
"xEF" => "xD7x9F",
        
"xF0" => "xD7xA0",
        
"xF1" => "xD7xA1",
        
"xF2" => "xD7xA2",
        
"xF3" => "xD7xA3",
        
"xF4" => "xD7xA4",
        
"xF5" => "xD7xA5",
        
"xF6" => "xD7xA6",
        
"xF7" => "xD7xA7",
        
"xF8" => "xD7xA8",
        
"xF9" => "xD7xA9",
        
"xFA" => "xD7xAA",
        
"xFD" => "xE2x80x8E",
        
"xFE" => "xE2x80x8F",
    );
    return 
strtr($string$transform);
}

function 
cp1256($string)
{
    static 
$transform = array(
        
"x80" => "xE2x82xAC",
        
"x81" => "xD9xBE",
        
"x82" => "xE2x80x9A",
        
"x83" => "xC6x92",
        
"x84" => "xE2x80x9E",
        
"x85" => "xE2x80xA6",
        
"x86" => "xE2x80xA0",
        
"x87" => "xE2x80xA1",
        
"x88" => "xCBx86",
        
"x89" => "xE2x80xB0",
        
"x8A" => "xD9xB9",
        
"x8B" => "xE2x80xB9",
        
"x8C" => "xC5x92",
        
"x8D" => "xDAx86",
        
"x8E" => "xDAx98",
        
"x8F" => "xDAx88",
        
"x90" => "xDAxAF",
        
"x91" => "xE2x80x98",
        
"x92" => "xE2x80x99",
        
"x93" => "xE2x80x9C",
        
"x94" => "xE2x80x9D",
        
"x95" => "xE2x80xA2",
        
"x96" => "xE2x80x93",
        
"x97" => "xE2x80x94",
        
"x98" => "xDAxA9",
        
"x99" => "xE2x84xA2",
        
"x9A" => "xDAx91",
        
"x9B" => "xE2x80xBA",
        
"x9C" => "xC5x93",
        
"x9D" => "xE2x80x8C",
        
"x9E" => "xE2x80x8D",
        
"x9F" => "xDAxBA",
        
"xA0" => "xC2xA0",
        
"xA1" => "xD8x8C",
        
"xA2" => "xC2xA2",
        
"xA3" => "xC2xA3",
        
"xA4" => "xC2xA4",
        
"xA5" => "xC2xA5",
        
"xA6" => "xC2xA6",
        
"xA7" => "xC2xA7",
        
"xA8" => "xC2xA8",
        
"xA9" => "xC2xA9",
        
"xAA" => "xDAxBE",
        
"xAB" => "xC2xAB",
        
"xAC" => "xC2xAC",
        
"xAD" => "xC2xAD",
        
"xAE" => "xC2xAE",
        
"xAF" => "xC2xAF",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC2xB1",
        
"xB2" => "xC2xB2",
        
"xB3" => "xC2xB3",
        
"xB4" => "xC2xB4",
        
"xB5" => "xC2xB5",
        
"xB6" => "xC2xB6",
        
"xB7" => "xC2xB7",
        
"xB8" => "xC2xB8",
        
"xB9" => "xC2xB9",
        
"xBA" => "xD8x9B",
        
"xBB" => "xC2xBB",
        
"xBC" => "xC2xBC",
        
"xBD" => "xC2xBD",
        
"xBE" => "xC2xBE",
        
"xBF" => "xD8x9F",
        
"xC0" => "xDBx81",
        
"xC1" => "xD8xA1",
        
"xC2" => "xD8xA2",
        
"xC3" => "xD8xA3",
        
"xC4" => "xD8xA4",
        
"xC5" => "xD8xA5",
        
"xC6" => "xD8xA6",
        
"xC7" => "xD8xA7",
        
"xC8" => "xD8xA8",
        
"xC9" => "xD8xA9",
        
"xCA" => "xD8xAA",
        
"xCB" => "xD8xAB",
        
"xCC" => "xD8xAC",
        
"xCD" => "xD8xAD",
        
"xCE" => "xD8xAE",
        
"xCF" => "xD8xAF",
        
"xD0" => "xD8xB0",
        
"xD1" => "xD8xB1",
        
"xD2" => "xD8xB2",
        
"xD3" => "xD8xB3",
        
"xD4" => "xD8xB4",
        
"xD5" => "xD8xB5",
        
"xD6" => "xD8xB6",
        
"xD7" => "xC3x97",
        
"xD8" => "xD8xB7",
        
"xD9" => "xD8xB8",
        
"xDA" => "xD8xB9",
        
"xDB" => "xD8xBA",
        
"xDC" => "xD9x80",
        
"xDD" => "xD9x81",
        
"xDE" => "xD9x82",
        
"xDF" => "xD9x83",
        
"xE0" => "xC3xA0",
        
"xE1" => "xD9x84",
        
"xE2" => "xC3xA2",
        
"xE3" => "xD9x85",
        
"xE4" => "xD9x86",
        
"xE5" => "xD9x87",
        
"xE6" => "xD9x88",
        
"xE7" => "xC3xA7",
        
"xE8" => "xC3xA8",
        
"xE9" => "xC3xA9",
        
"xEA" => "xC3xAA",
        
"xEB" => "xC3xAB",
        
"xEC" => "xD9x89",
        
"xED" => "xD9x8A",
        
"xEE" => "xC3xAE",
        
"xEF" => "xC3xAF",
        
"xF0" => "xD9x8B",
        
"xF1" => "xD9x8C",
        
"xF2" => "xD9x8D",
        
"xF3" => "xD9x8E",
        
"xF4" => "xC3xB4",
        
"xF5" => "xD9x8F",
        
"xF6" => "xD9x90",
        
"xF7" => "xC3xB7",
        
"xF8" => "xD9x91",
        
"xF9" => "xC3xB9",
        
"xFA" => "xD9x92",
        
"xFB" => "xC3xBB",
        
"xFC" => "xC3xBC",
        
"xFD" => "xE2x80x8E",
        
"xFE" => "xE2x80x8F",
        
"xFF" => "xDBx92",
    );
    return 
strtr($string$transform);
}

function 
cp1257($string)
{
    static 
$transform = array(
        
"x80" => "xE2x82xAC",
        
"x82" => "xE2x80x9A",
        
"x84" => "xE2x80x9E",
        
"x85" => "xE2x80xA6",
        
"x86" => "xE2x80xA0",
        
"x87" => "xE2x80xA1",
        
"x89" => "xE2x80xB0",
        
"x8B" => "xE2x80xB9",
        
"x8D" => "xC2xA8",
        
"x8E" => "xCBx87",
        
"x8F" => "xC2xB8",
        
"x91" => "xE2x80x98",
        
"x92" => "xE2x80x99",
        
"x93" => "xE2x80x9C",
        
"x94" => "xE2x80x9D",
        
"x95" => "xE2x80xA2",
        
"x96" => "xE2x80x93",
        
"x97" => "xE2x80x94",
        
"x99" => "xE2x84xA2",
        
"x9B" => "xE2x80xBA",
        
"x9D" => "xC2xAF",
        
"x9E" => "xCBx9B",
        
"xA0" => "xC2xA0",
        
"xA2" => "xC2xA2",
        
"xA3" => "xC2xA3",
        
"xA4" => "xC2xA4",
        
"xA6" => "xC2xA6",
        
"xA7" => "xC2xA7",
        
"xA8" => "xC3x98",
        
"xA9" => "xC2xA9",
        
"xAA" => "xC5x96",
        
"xAB" => "xC2xAB",
        
"xAC" => "xC2xAC",
        
"xAD" => "xC2xAD",
        
"xAE" => "xC2xAE",
        
"xAF" => "xC3x86",
        
"xB0" => "xC2xB0",
        
"xB1" => "xC2xB1",
        
"xB2" => "xC2xB2",
        
"xB3" => "xC2xB3",
        
"xB4" => "xC2xB4",
        
"xB5" => "xC2xB5",
        
"xB6" => "xC2xB6",
        
"xB7" => "xC2xB7",
        
"xB8" => "xC3xB8",
        
"xB9" => "xC2xB9",
        
"xBA" => "xC5x97",
        
"xBB" => "xC2xBB",
        
"xBC" => "xC2xBC",
        
"xBD" => "xC2xBD",
        
"xBE" => "xC2xBE",
        
"xBF" => "xC3xA6",
        
"xC0" => "xC4x84",
        
"xC1" => "xC4xAE",
        
"xC2" => "xC4x80",
        
"xC3" => "xC4x86",
        
"xC4" => "xC3x84",
        
"xC5" => "xC3x85",
        
"xC6" => "xC4x98",
        
"xC7" => "xC4x92",
        
"xC8" => "xC4x8C",
        
"xC9" => "xC3x89",
        
"xCA" => "xC5xB9",
        
"xCB" => "xC4x96",
        
"xCC" => "xC4xA2",
        
"xCD" => "xC4xB6",
        
"xCE" => "xC4xAA",
        
"xCF" => "xC4xBB",
        
"xD0" => "xC5xA0",
        
"xD1" => "xC5x83",
        
"xD2" => "xC5x85",
        
"xD3" => "xC3x93",
        
"xD4" => "xC5x8C",
        
"xD5" => "xC3x95",
        
"xD6" => "xC3x96",
        
"xD7" => "xC3x97",
        
"xD8" => "xC5xB2",
        
"xD9" => "xC5x81",
        
"xDA" => "xC5x9A",
        
"xDB" => "xC5xAA",
        
"xDC" => "xC3x9C",
        
"xDD" => "xC5xBB",
        
"xDE" => "xC5xBD",
        
"xDF" => "xC3x9F",
        
"xE0" => "xC4x85",
        
"xE1" => "xC4xAF",
        
"xE2" => "xC4x81",
        
"xE3" => "xC4x87",
        
"xE4" => "xC3xA4",
        
"xE5" => "xC3xA5",
        
"xE6" => "xC4x99",
        
"xE7" => "xC4x93",
        
"xE8" => "xC4x8D",
        
"xE9" => "xC3xA9",
        
"xEA" => "xC5xBA",
        
"xEB" => "xC4x97",
        
"xEC" => "xC4xA3",
        
"xED" => "xC4xB7",
        
"xEE" => "xC4xAB",
        
"xEF" => "xC4xBC",
        
"xF0" => "xC5xA1",
        
"xF1" => "xC5x84",
        
"xF2" => "xC5x86",
        
"xF3" => "xC3xB3",
        
"xF4" => "xC5x8D",
        
"xF5" => "xC3xB5",
        
"xF6" => "xC3xB6",
        
"xF7" => "xC3xB7",
        
"xF8" => "xC5xB3",
        
"xF9" => "xC5x82",
        
"xFA" => "xC5x9B",
        
"xFB" => "xC5xAB",
        
"xFC" => "xC3xBC",
        
"xFD" => "xC5xBC",
        
"xFE" => "xC5xBE",
        
"xFF" => "xCBx99",
    );
    return 
strtr($string$transform);
}

function 
utf8_to_cp1252($string)
{
    static 
$transform = array(
        
"xE2x82xAC" => "x80",
        
"xE2x80x9A" => "x82",
        
"xC6x92" => "x83",
        
"xE2x80x9E" => "x84",
        
"xE2x80xA6" => "x85",
        
"xE2x80xA0" => "x86",
        
"xE2x80xA1" => "x87",
        
"xCBx86" => "x88",
        
"xE2x80xB0" => "x89",
        
"xC5xA0" => "x8A",
        
"xE2x80xB9" => "x8B",
        
"xC5x92" => "x8C",
        
"xC5xBD" => "x8E",
        
"xE2x80x98" => "x91",
        
"xE2x80x99" => "x92",
        
"xE2x80x9C" => "x93",
        
"xE2x80x9D" => "x94",
        
"xE2x80xA2" => "x95",
        
"xE2x80x93" => "x96",
        
"xE2x80x94" => "x97",
        
"xCBx9C" => "x98",
        
"xE2x84xA2" => "x99",
        
"xC5xA1" => "x9A",
        
"xE2x80xBA" => "x9B",
        
"xC5x93" => "x9C",
        
"xC5xBE" => "x9E",
        
"xC5xB8" => "x9F",
        
"xC2xA0" => "xA0",
        
"xC2xA1" => "xA1",
        
"xC2xA2" => "xA2",
        
"xC2xA3" => "xA3",
        
"xC2xA4" => "xA4",
        
"xC2xA5" => "xA5",
        
"xC2xA6" => "xA6",
        
"xC2xA7" => "xA7",
        
"xC2xA8" => "xA8",
        
"xC2xA9" => "xA9",
        
"xC2xAA" => "xAA",
        
"xC2xAB" => "xAB",
        
"xC2xAC" => "xAC",
        
"xC2xAD" => "xAD",
        
"xC2xAE" => "xAE",
        
"xC2xAF" => "xAF",
        
"xC2xB0" => "xB0",
        
"xC2xB1" => "xB1",
        
"xC2xB2" => "xB2",
        
"xC2xB3" => "xB3",
        
"xC2xB4" => "xB4",
        
"xC2xB5" => "xB5",
        
"xC2xB6" => "xB6",
        
"xC2xB7" => "xB7",
        
"xC2xB8" => "xB8",
        
"xC2xB9" => "xB9",
        
"xC2xBA" => "xBA",
        
"xC2xBB" => "xBB",
        
"xC2xBC" => "xBC",
        
"xC2xBD" => "xBD",
        
"xC2xBE" => "xBE",
        
"xC2xBF" => "xBF",
        
"xC3x80" => "xC0",
        
"xC3x81" => "xC1",
        
"xC3x82" => "xC2",
        
"xC3x83" => "xC3",
        
"xC3x84" => "xC4",
        
"xC3x85" => "xC5",
        
"xC3x86" => "xC6",
        
"xC3x87" => "xC7",
        
"xC3x88" => "xC8",
        
"xC3x89" => "xC9",
        
"xC3x8A" => "xCA",
        
"xC3x8B" => "xCB",
        
"xC3x8C" => "xCC",
        
"xC3x8D" => "xCD",
        
"xC3x8E" => "xCE",
        
"xC3x8F" => "xCF",
        
"xC3x90" => "xD0",
        
"xC3x91" => "xD1",
        
"xC3x92" => "xD2",
        
"xC3x93" => "xD3",
        
"xC3x94" => "xD4",
        
"xC3x95" => "xD5",
        
"xC3x96" => "xD6",
        
"xC3x97" => "xD7",
        
"xC3x98" => "xD8",
        
"xC3x99" => "xD9",
        
"xC3x9A" => "xDA",
        
"xC3x9B" => "xDB",
        
"xC3x9C" => "xDC",
        
"xC3x9D" => "xDD",
        
"xC3x9E" => "xDE",
        
"xC3x9F" => "xDF",
        
"xC3xA0" => "xE0",
        
"xC3xA1" => "xE1",
        
"xC3xA2" => "xE2",
        
"xC3xA3" => "xE3",
        
"xC3xA4" => "xE4",
        
"xC3xA5" => "xE5",
        
"xC3xA6" => "xE6",
        
"xC3xA7" => "xE7",
        
"xC3xA8" => "xE8",
        
"xC3xA9" => "xE9",
        
"xC3xAA" => "xEA",
        
"xC3xAB" => "xEB",
        
"xC3xAC" => "xEC",
        
"xC3xAD" => "xED",
        
"xC3xAE" => "xEE",
        
"xC3xAF" => "xEF",
        
"xC3xB0" => "xF0",
        
"xC3xB1" => "xF1",
        
"xC3xB2" => "xF2",
        
"xC3xB3" => "xF3",
        
"xC3xB4" => "xF4",
        
"xC3xB5" => "xF5",
        
"xC3xB6" => "xF6",
        
"xC3xB7" => "xF7",
        
"xC3xB8" => "xF8",
        
"xC3xB9" => "xF9",
        
"xC3xBA" => "xFA",
        
"xC3xBB" => "xFB",
        
"xC3xBC" => "xFC",
        
"xC3xBD" => "xFD",
        
"xC3xBE" => "xFE",
        
"xC3xBF" => "xFF"
    
);
    return 
strtr($string$transform);
}

?>
Онлайн: 2
Реклама