Talk About Network

Google




Play Stock Market Games
Fantasy Stock Picking Contest

Data Bases > Pgsql Interfaces Jdbc > UTF8 should be ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1886 of 2010
Post > Topic >>

UTF8 should be accepted as UNICODE

by ivo.danihelka@[EMAIL PROTECTED] (Ivo Danihelka) Feb 22, 2008 at 03:08 PM

The Postgresql JDBC driver does not accept this statement:
SET client_encoding = 'UTF8';

It fails with:
"org.postgresql.util.PSQLException: The server's client_encoding
parameter was changed to UTF8. The JDBC driver requires client_encoding
to be UNICODE for correct operation."

I consider that to be a bug. The UNICODE is an alias for UTF8. 

Starting from 8.2, the pg_dump ex****ts 'UTF8'
even when --encoding=UNICODE is used.
See:
$ pg_dump --version
pg_dump (PostgreSQL) 8.2.6
$ pg_dump --encoding=UNICODE template1 | grep client_encoding
SET client_encoding = 'UTF8';


The check for value.equals('UNICODE') is inside
org/postgresql/core/v3/QueryExecutorImpl.java

Thanks for the driver,
-- 
Ivo Danihelka


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
 




 3 Posts in Topic:
UTF8 should be accepted as UNICODE
ivo.danihelka@[EMAIL PROT  2008-02-22 15:08:14 
Re: UTF8 should be accepted as UNICODE
pg@[EMAIL PROTECTED] (Da  2008-02-22 09:21:03 
Re: UTF8 should be accepted as UNICODE
books@[EMAIL PROTECTED]   2008-02-22 11:35:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Aug 8 13:26:27 CDT 2008.