<?php
$text = strip_tags(html_entity_decode($_POST["_text"]));
$text = iconv("UTF-8","windows-1250"."//TRANSLIT",$text);
$a ="\xc1\xc9\xcd\xd3\xda\xdd\xe1\xe9\xed\xf3\xfa\xfd\xc2\xca\xce\xd4\xdb\xe2\xea\xee\xf4\xfb\xc0\xc8\xcc\xd2\xd9\xe0\xe8\xec\xf2\xf9\xc4\xcb\xcf\xd6\xdc\xe4\xeb\xef\xf6\xfc\xc3\xe3\xd5\xf5\xc5\xe5\xd1\xf1\xc7\xe7\xba\xaa\x8e\x9e\x9d\x8d\xd8\xf8\x8a\x9a";
$b = 'AEIOUYaeiouyAEIOUaeiouACENUrcenuAEIOUaedouAaOoLlNnCcsSZztTRrSs';
$text = strtr($text , $a, $b);
echo $text;
echo "<form action=\"http://vytvorweb.czweb.org/php/php-odstraneni-diakritiky.html\" method=\"post\">";
echo "text s diakritikou:";echo "<br />";
echo "<textarea name=\"_text\" rows=\"6\" cols=\"55\">Zpráva...</textarea>";
echo "<br />";
echo "<br />";
echo "<input type=\"submit\" value=\"Poslat\" />
</form>";
?>
|