Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 56CA49FB763 for ; Tue, 1 May 2007 12:29:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 69162-06 for ; Tue, 1 May 2007 12:29:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from web39107.mail.mud.yahoo.com (web39107.mail.mud.yahoo.com [209.191.87.226]) by postgresql.org (Postfix) with SMTP id C5BFF9FB214 for ; Tue, 1 May 2007 12:29:17 -0300 (ADT) Received: (qmail 14570 invoked by uid 60001); 1 May 2007 15:29:16 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=PnTO58iuoP78XJ6833eMppzx/PG1yvWUfNl5BrNfuXg/YHh3XpIB2XuSnjDM3W7/9p1TZABdkzFXDBQwQKgRYu8vvcAgtM4zFJKdQ4ygda3zkdZqpEVlx3GZNrlMULcjTO/16ufTimUr1Ce7P+8PhSW0YIHHqmPsGCXC6gEvMCU=; X-YMail-OSG: ZA1jaX4VM1morxmuzG.livZwCB9olYOPyovi_iFfdpLoAHTg3o8qmWEHJKY_Hty7CI_wk5qLClKz8ZYV_0FwPPJIEUBFs6sy05TN9O0mgVPZW3F1QPzJHPOZ6d3oJA-- Received: from [203.215.160.146] by web39107.mail.mud.yahoo.com via HTTP; Tue, 01 May 2007 08:29:16 PDT Date: Tue, 1 May 2007 08:29:16 -0700 (PDT) From: Altaf Malik Subject: JDBC Default Encoding To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1067391780-1178033356=:13890" Content-Transfer-Encoding: 8bit Message-ID: <380653.13890.qm@web39107.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.655 tagged_above=0 required=5 tests=AWL=-0.591, BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447, HTML_MESSAGE=0.001 X-Spam-Level: * X-Archive-Number: 200705/5 X-Sequence-Number: 16995 --0-1067391780-1178033356=:13890 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 outnew cars at Yahoo! Autos. --0-1067391780-1178033356=:13890 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-1067391780-1178033356=:13890--