Re: character problem

From: Hannes Dorbath <light(at)theendofthetunnel(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: character problem
Date: 2005-10-10 13:24:42
Message-ID: didq25$120d$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 10.10.2005 14:24, Luca Ferrari wrote:
> The old rows are still displayed in a bad format, the newly inserted one
> is instead shown rightly. Also data in pg_dump present wrong strings,
> thus any suggestion about how to reconvert already inserted data?

It should be possible to convert it with an intentionally "wrong"
client_encoding and one or two reloads, but I don't have the time ATM to
think out how to do it exactly, maybe someone else can help in the meantime.

> Moreover, the set client_encoding change is permanent or do I have to
> configure it in the postgresql.conf file?

No it's for the running session only. Set it global in postgresql.conf,
for each user or just fire "SET client_encoding = LATIN1;" as first
query in your scripts.

--
Regards,
Hannes Dorbath

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Fuhr 2005-10-10 13:37:30 Re: Query Question
Previous Message Luca Ferrari 2005-10-10 12:24:46 Re: character problem