Re: Ayuda con Server encoding

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Gunnar Wolf <gwolf(at)gwolf(dot)org>
Cc: SILVANA IOVINO <silvana_iovino(at)yahoo(dot)com(dot)ar>, pgsql-es-ayuda-postgresql(dot)org(at)postgresql(dot)org
Subject: Re: Ayuda con Server encoding
Date: 2008-10-15 22:05:16
Message-ID: 20081015220516.GH6012@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Gunnar Wolf escribió:

> _NO_ cambies de UTF8 a Latin1 - En todo caso, si tus clientes te dan
> datos en Latin1, configura la codificación de la conexión de cada
> cliente. Esto puedes hacerlo dando:
>
> SET CLIENT ENCODING TO LATIN1;
>
> al iniciar cualquier sesión (obviamente, puedes ponerlo como parte de
> la incialización de tu aplicación).

... o también puedes dejarlo fijo para el usuario haciendo

ALTER USER usuario SET client_encoding TO latin1;

Y luego esa variable será permanente para todas las sesiones iniciadas
por ese usuario.

--
Alvaro Herrera http://www.amazon.com/gp/registry/CTMLCN8V17R4
"The Gord often wonders why people threaten never to come back after they've
been told never to return" (www.actsofgord.com)

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaume Riu 2008-10-16 08:37:38 RE: Error configure plphp
Previous Message Gunnar Wolf 2008-10-15 21:51:23 Re: Ayuda con Server encoding