Search Postgresql Archives

Error inserting data to bytea column in 8.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In 8.4, script

create temp table test ( test bytea );
insert into test values(E'\274')

Causes error

ERROR:  invalid byte sequence for encoding "UTF8": 0xbc
HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".

In 8.2 this script runs OK.

How to insert data to bytea field ?

Andrus

Both server and client are running in windows.

"PostgreSQL 8.4.0, compiled by Visual C++ build 1400, 32-bit"

show client_encoding
"UNICODE"

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux