Location: PHPKode > projects > FREE WAP PHP SCRIPTS CENTER > free_wap_ftp_client/koi.php
<?php
function u2k($text) {
$u2k=array(
"а"=>"Á","б"=>"Â","в"=>"×","г"=>"Ç","д"=>"Ä","е"=>"Å","ё"=>"£","ж"=>"Ö",
"з"=>"Ú","и"=>"É","й"=>"Ê","к"=>"Ë","л"=>"Ì","м"=>"Í","н"=>"Î","о"=>"Ï",
"п"=>"Ð","р"=>"Ò","с"=>"Ó","т"=>"Ô","у"=>"Õ","ф"=>"Æ","х"=>"È","ц"=>"Ã",
"ч"=>"Þ","ш"=>"Û","щ"=>"Ý","ъ"=>"ß","ы"=>"Ù","ь"=>"Ø","э"=>"Ü","ю"=>"À",
"я"=>"Ñ","А"=>"á","Б"=>"â","В"=>"÷","Г"=>"ç","Д"=>"ä","Е"=>"å","Ё"=>"³",
"Ж"=>"ö","З"=>"ú","И"=>"é","Й"=>"ê","К"=>"ë","Л"=>"ì","М"=>"í","Н"=>"î",
"О"=>"ï","П"=>"ð","Р"=>"ò","С"=>"ó","Т"=>"ô","У"=>"õ","Ф"=>"æ","Ð¥"=>"è",
"Ц"=>"ã","Ч"=>"þ","Ш"=>"û","Щ"=>"ý","Ъ"=>"ÿ","Ы"=>"ù","Ь"=>"ø","Э"=>"ü",
"Ю"=>"à","Я"=>"ñ");
return strtr($text,$u2k);
}
function k2u($text) {
$k2u=array(
"Á"=>"а","Â"=>"б","×"=>"в","Ç"=>"г","Ä"=>"д","Å"=>"е","£"=>"ё","Ö"=>"ж",
"Ú"=>"з","É"=>"и","Ê"=>"й","Ë"=>"к","Ì"=>"л","Í"=>"м","Î"=>"н","Ï"=>"о",
"Ð"=>"п","Ò"=>"р","Ó"=>"с","Ô"=>"т","Õ"=>"у","Æ"=>"ф","È"=>"х","Ã"=>"ц",
"Þ"=>"ч","Û"=>"ш","Ý"=>"щ","ß"=>"ъ","Ù"=>"ы","Ø"=>"ь","Ü"=>"э","À"=>"ю",
"Ñ"=>"я","á"=>"А","â"=>"Б","÷"=>"В","ç"=>"Г","ä"=>"Д","å"=>"Е","³"=>"Ё",
"ö"=>"Ж","ú"=>"З","é"=>"И","ê"=>"Й","ë"=>"К","ì"=>"Л","í"=>"М","î"=>"Н",
"ï"=>"О","ð"=>"П","ò"=>"Р","ó"=>"С","ô"=>"Т","õ"=>"У","æ"=>"Ф","è"=>"Ð¥",
"ã"=>"Ц","þ"=>"Ч","û"=>"Ш","ý"=>"Щ","ÿ"=>"Ъ","ù"=>"Ы","ø"=>"Ь","ü"=>"Э",
"à"=>"Ю","ñ"=>"Я");
return strtr($text,$k2u);
}
?>
Return current item: FREE WAP PHP SCRIPTS CENTER