Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/11/2010, 12:40
Avatar de tpzurdo
tpzurdo
 
Fecha de Ingreso: julio-2007
Mensajes: 83
Antigüedad: 16 años, 9 meses
Puntos: 0
strotolower imposible charset utf8

Alguien tiene alguna idea de como hacer funcionar el maldito strtolower() con los acentos... o es imposible.

Basta no me digan que lo googlee o que busque otros posts porque ya lo googleé mil veces encontré todas estas soluciones están todas juntas aplicadas y ni modo sigue sin funcionar. También cambié todos los seteos de charset a utf-8. Siempre use la función strtolower() y funcionó bien ahora de repente se les ocurre plantearte esta dificultad a los desarrolladores.

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?php
	setlocale(LC_ALL, 'es_es');

	$convertir= utf8_decode("á");
	echo strtolower($convertir);
	echo strtolower("á");
	echo strtolower(utf8_encode("á"));
	echo strtolower(utf8_decode("á"));
	echo utf8_encode(strtolower("á"));
	echo utf8_decode(strtolower("á"));
	echo strtr(strtoupper("á"), "àáâãäåæçèéêëìíîïðñòóôõöøùüú", "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÜÚ");
  	echo strtr(strtolower("á"), "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÜÚ", "àáâãäåæçèéêëìíîïðñòóôõöøùüú");

?>
</body>
</html>
TODO EN UTF8
todo seteado