Re: How do I change the server encoding? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: How do I change the server encoding?
Date
Msg-id Pine.LNX.4.44.0302251915090.2581-100000@peter.localdomain
Whole thread Raw
In response to Re: How do I change the server encoding?  (Philippe Kiener <philippe.kiener@eivd.ch>)
Responses Re: How do I change the server encoding?
List pgsql-general
Philippe Kiener writes:

> My database should be transform from SQL_ASCII to utf-8
>
> I have added that line to my dumps:
>
> SET CLIENT_ENCODING TO 'SQL_ASCII';
>
> Now when I load the dump into my db, I get that error on tables with text:
>
> psql:tcom-database.sql:7111: ERROR:  copy: line 1, Invalid UNICODE character
> sequence found (0xe96500)

The client encoding SQL_ASCII means that the data will be passed through
unchanged.  Try setting it to LATIN1.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-general by date:

Previous
From: Dmitry Tkach
Date:
Subject: Compilation errors?
Next
From: Peter Eisentraut
Date:
Subject: Re: 7.4?