Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/10/2008, 13:01
mayik81
 
Fecha de Ingreso: octubre-2008
Mensajes: 3
Antigüedad: 16 años, 3 meses
Puntos: 0
Respuesta: Codificación iso-8859-1 y UTF-8

Yo tuve ese problema cuando añadi a mis proyectos XAJAX.


Si no usas xajax ó ajax ( yo es que no trabajo con ajax a pelo, uso la libreria de xajax) no tienes que hacer nada , simplemente poner bien los headers y ya esta

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta name="Content-Type" content="text/html; charset=iso-8859-1" />
.....
</head>

Si usas xajax antes de registrar las funciones debes poner:
$xajax->setCharEncoding("iso-8859-1");
$xajax->decodeUTF8InputOn();