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