Re: COPY LATIN1

From: Alejandro Carrillo <fasterzip(at)yahoo(dot)es>
To: "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: COPY LATIN1
Date: 2011-10-24 21:01:59
Message-ID: 1319490119.82892.YahooMailNeo@web27405.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Puedes mirar esto:http://darkchicles.wordpress.com/2009/04/15/cambiar-la-codificacin-de-caracteres-en-postgres/
o cambiarla a UTF-8

________________________________
De: Dan <danstreet(at)gmail(dot)com>
Para: pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Enviado: lunes 24 de octubre de 2011 15:48
Asunto: [pgsql-es-ayuda] COPY LATIN1

Buenas Tardes estoy utilizando creando una funcion plpgsql con la sentencia COPY, pero al generar el archivo la tilde(ó)  y la ñ (ño) salen mal

....

set client_encoding to 'latin1';

execute 'COPY (
           select 'Dni', 'Nombre', 'Dirección', 'Año Reg.' from personal;
        ) TO ''/tmp/' || p_file || ''' WITH DELIMITER '','' NULL AS '''' CSV HEADER';

...

p_file es un parametro que contiene el nombre del archivo csv.

Gracias por su ayuda.

--
-----------------
  [) /-\  |\|

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Dan 2011-10-24 21:11:28 Re: COPY LATIN1
Previous Message Dan 2011-10-24 20:48:43 COPY LATIN1