Re: Encoding and Conversion Question(s)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Lazar <hunkybill(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Encoding and Conversion Question(s)
Date: 2005-08-15 18:30:50
Message-ID: 11132.1124130650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dave Lazar <hunkybill(at)gmail(dot)com> writes:
> I have a database that was created with the encoding set to SQL_ASCII.
> A lot of data comes with accented characters.

You need to figure out what encoding that data is actually in (hint:
it's not ASCII) and specify that encoding as the client_encoding in
the restore script. Postgres will then be able to convert the data
to UTF-8 correctly.

If the data is actually all in one encoding, this shouldn't be too
painful. If it's in a mishmash of different encodings, you are in
for some pain getting things fixed up :-(

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2005-08-15 18:37:48 Re: [despammed] Re: ~/pgpass
Previous Message CSN 2005-08-15 18:28:00 Re: Apostrophe doesn't show up in command line