JDBC Default Encoding - Mailing list pgsql-jdbc

From Altaf Malik
Subject JDBC Default Encoding
Date
Msg-id 380653.13890.qm@web39107.mail.mud.yahoo.com
Whole thread Raw
Responses Re: JDBC Default Encoding
List pgsql-jdbc
Hi,
 In PGStream, i see the default encoding "US-ASCII" which is overridden once we are connected to the database. But, if an error comes while connecting to the database for example user name is not correct, US-ASCII is used to decode the Server Message which prints ??? instead of actual error message when the locale is other than english (in my case it was zh_TW.utf8). If i change the default encoding of PGStream to UTF8, it works fine. Is there any specific reason for the default encoding to be the US-ASCII?

--Altaf Malik


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.

pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: Null bind variable in where clause
Next
From: Kris Jurka
Date:
Subject: Re: JDBC Default Encoding