Tengo un problema con url de mi web.
uso el charset utf-8:
Código PHP:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
Código PHP:
function limpiar($url) {
$url = htmlentities($url, ENT_QUOTES, 'ISO-8859-1');
$url = strtolower($url);
$find = array(" ", "&", "\r\n", "\n", "+");
$url = str_replace ($find, "-", $url);
$find = array("á", "é", "í", "o", "ú", "ñ");
$repl = array("a", "e", "i", "o", "u", "n");
$url = str_replace ($find, $repl, $url);
$find = array("/[^a-z0-9\-<>]/", "/[\-]+/", "/<[^>]*>/");
$repl = array("", "-", "");
$url = preg_replace ($find, $repl, $url);
return $url;
}
Código PHP:
$video['title3'] = limpiar($video_arr['title']);
$video['vidid'] = $video_arr['vidid'];
Código PHP:
mipagina.com/vide-atilde-sup3n.html
Código PHP:
mipagina.com/di-atilde-shya.html
Código PHP:
mipagina.com/taasdsd-ampamp-alienate-nana.html
![Porras](http://static.forosdelweb.com/fdwtheme/images/smilies/porra.gif)