From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Carlos Mendez <lucas1850(at)gmail(dot)com> |
Cc: | Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>, hermeszambra(at)yahoo(dot)com, pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: ERROR: invalid byte sequence for encoding "UTF8": |
Date: | 2008-08-19 19:48:43 |
Message-ID: | 20080819194843.GI4428@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Carlos Mendez escribió:
> <?
> function sql_registro()
> {
> include('conexion_db.php');
> $query = "SET client_encoding = 'UTF8'";
> $datos = $conn1->Execute("$query");`
> y mas abajo otras consultas
> }
Bueno, just aquí está el problema. No debes decir client_encoding=utf8,
sino client_encoding=latin1
> Query failed: ERROR: invalid byte sequence for encoding "UTF8": 0xd1d1
> HINT: This error can also happen if the byte sequence does not match
> the encoding expected by the server, which is controlled by
> "client_encoding".
Dime una cosa, cuando te aparece este error ¿cuál es el INSERT que estás
enviando, exactamente?
--
Alvaro Herrera Valdivia, Chile Geotag: -39,815 -73,257
"No es bueno caminar con un hombre muerto"
From | Date | Subject | |
---|---|---|---|
Next Message | postgres Emanuel CALVO FRANCO | 2008-08-19 19:52:34 | [Off-topic] Jornadas Regionales Soft LIbre |
Previous Message | Jaime Casanova | 2008-08-19 19:32:21 | Re: empezar serial desde 1000 |