Re: character problem

From: Luca Ferrari <fluca1978(at)infinito(dot)it>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: character problem
Date: 2005-10-10 12:24:46
Message-ID: 434A5D8E.1000401@infinito.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hannes Dorbath's cat, on 10/10/2005 12.08, walking on the keyboard wrote:
> OK, so you are not using Unicode. I don't know much about the SQL_ASCII
> charset, but I expect it to slightly differ from LATIN1. Type
>
> SET client_encoding = LATIN1;
>
> in psql, then SELECT some data containing the chars you have problems
> with and see if it is fixed. If not, INSERT a new row with such chars
> from psql, SELECT that row again and if the chars look right now, your
> other rows are stored invalid in the datebase and you need to convert
> them somehow.

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?
Moreover, the set client_encoding change is permanent or do I have to
configure it in the postgresql.conf file?

Thanks,
Luca

--
Luca Ferrari
fluca1978(at)infinito(dot)it

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Hannes Dorbath 2005-10-10 13:24:42 Re: character problem
Previous Message Stef 2005-10-10 12:18:39 Compression of text columns