Re: help with utf8

From: Richard Huxton <dev(at)archonet(dot)com>
To: Hugo <htakada(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: help with utf8
Date: 2005-12-01 16:52:50
Message-ID: 438F2A62.7080405@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hugo wrote:
> Richard,
>
> I have to import data from a CSV file with the pgsql COPY command, I just
> know that this file comes from an old program written in Clipper (or
> something like under linux) , my database was created with UTF8, I cant
> find how to create it with UTF-16 on windows, what is the recomended
> encoding for Postgres on windows spanish version.

Postgresql only supports UTF-8. If it's just Spanish data, you might be
using one of ISO-8859-1 or ISO 8859-15 (mostly the same as -1 but with
the Euro). These are also known as Latin1 and Latin9. See link below for
a list of various character-sets available.
http://www.jbrowse.com/text/charsets.html

Alternatively, it might be in some Windows-specific character set, if
that's where the file came from. On Linux you should be able to use the
"file" utility to identify the character-set of some text.

Make yourself a coffee and sit down and read the "localization" section
of the manuals, Make sure you understand the difference between server
and client encodings and you might find the bit on conversions useful too.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Medora Schauer 2005-12-01 16:54:41 Re: fatal error in pg.log
Previous Message Tom Lane 2005-12-01 16:45:46 Re: fatal error in pg.log