Re: help with utf8 - Mailing list pgsql-general

From Richard Huxton
Subject Re: help with utf8
Date
Msg-id 438F2A62.7080405@archonet.com
Whole thread Raw
In response to Re: help with utf8  (Hugo <htakada@gmail.com>)
List 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

pgsql-general by date:

Previous
From: Kelly Burkhart
Date:
Subject: Re: default_index_tablespace?
Next
From: Greg Stark
Date:
Subject: Re: undefined behaviour for sub-transactions?