Re: How do I change the server encoding?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Philippe Kiener <philippe(dot)kiener(at)eivd(dot)ch>
Cc: Antti Haapala <antti(dot)haapala(at)iki(dot)fi>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: How do I change the server encoding?
Date: 2003-02-25 22:27:46
Message-ID: Pine.LNX.4.44.0302251915090.2581-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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(at)gmx(dot)net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2003-02-25 22:28:20 Re: 7.4?
Previous Message Ivan 2003-02-25 21:22:01 simple questions

Browse pgsql-hackers by date

  From Date Subject
Next Message Radha Manohar 2003-02-25 23:33:48 Figures in Developer's guide
Previous Message Peter Eisentraut 2003-02-25 22:27:24 More outdated documentation