Re: psql file restore - problem with encoding

From: Miroslav Šulc <miroslav(dot)sulc(at)startnet(dot)cz>
To: John DeSoi <desoi(at)pgedit(dot)com>
Cc: PGSQL mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql file restore - problem with encoding
Date: 2005-03-16 15:28:11
Message-ID: 4238508B.4060700@startnet.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John DeSoi wrote:

>
> On Mar 16, 2005, at 9:34 AM, Miroslav Šulc wrote:
>
>> I have problem on one of our potentional client's linux server with
>> data encoding. I have played with this for some time but with no
>> success. Here is the problem:
>>
>
> Maybe try setting the client side encoding explicitly at the top of
> the dump file:
>
> \encoding UNICODE
>
> It should also be possible to set this in the psql command line if you
> don't want to modify the file.

The dump file already contains the encoding information as the first
command:

SET client_encoding = 'UNICODE';

so I think this is sufficient. What is strange to me is that the
communication is UNICODE -> UNICODE so for me it means "no conversion",
but the result is different.

>
> John DeSoi, Ph.D.
> http://pgedit.com/
> Power Tools for PostgreSQL
>
Miroslav

Attachment Content-Type Size
miroslav.sulc.vcf text/x-vcard 387 bytes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-03-16 15:30:54 Re: generating statistics
Previous Message Michael Fuhr 2005-03-16 15:21:40 Re: generating statistics