Re: COPY LATIN1

From: Dan <danstreet(at)gmail(dot)com>
To: Alejandro Carrillo <fasterzip(at)yahoo(dot)es>
Cc: "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: COPY LATIN1
Date: 2011-10-24 21:11:28
Message-ID: CAKw8BR-g4o+OW17kWAgbiGUs3qEpzc34uihhqHjSfSke2DQH7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Olvide mencionar mi Base de Datos esta en LATIN1.

2011/10/24 Alejandro Carrillo <fasterzip(at)yahoo(dot)es>

> 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 Alejandro Carrillo 2011-10-24 21:14:45 Re: consultas para tablas con problemas en indices
Previous Message Alejandro Carrillo 2011-10-24 21:01:59 Re: COPY LATIN1