Thanks Kris and Oliver for your explanations.
Why I want to set the client_encoding to latin1? That's a fair
question. Unfortunately I removed the statement following the COPY
command to keep the posting short:
SET CLIENT_ENCODING TO 'LATIN1';
COPY temp_test FROM '/home/postgres/temp_test.dat';
I want to load a latin1-encoded file using the COPY command. Not
setting the encoding leads to the following error message:
ERROR: Unicode characters greater than or equal to 0x10000 are
Executing the same COPY statement with psql works fine.
In response to
pgsql-jdbc by date
|Next:||From: Oliver Jowett||Date: 2004-11-04 10:17:22|
|Subject: Re: 8.0.0beta4: "copy" and "client_encoding"|
|Previous:||From: Oliver Jowett||Date: 2004-11-03 21:23:38|
|Subject: Re: stable release|