Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOIx9-0003f6-TJ for pgsql-jdbc@arkaria.postgresql.org; Tue, 24 Sep 2013 03:06:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VOIx9-0000Aw-48 for pgsql-jdbc@arkaria.postgresql.org; Tue, 24 Sep 2013 03:06:19 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOIx8-0000Ao-5Q for pgsql-jdbc@postgresql.org; Tue, 24 Sep 2013 03:06:18 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOIx2-0001UL-C1 for pgsql-jdbc@postgresql.org; Tue, 24 Sep 2013 03:06:17 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id r8O367l00706 for ; Mon, 23 Sep 2013 20:06:07 -0700 Message-ID: <5241019B.7090008@hogranch.com> Date: Mon, 23 Sep 2013 20:06:03 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Re: Reading =?UTF-8?B?wqMgY2hhcmFjdGVyIGZyb20gREIgaXMg?= =?UTF-8?B?ZGlzcGxheWluZyDFkyBjaGFyYWN0ZXI=?= References: <1379825582068-5771897.post@n5.nabble.com> <0C723FEB5B4E5642B25B451BA57E27303EE04617@S1P5DAG3C.EXCHPROD.USA.NET> <1379961198670-5772060.post@n5.nabble.com> <52409393.6070105@hogranch.com> <1379968337903-5772093.post@n5.nabble.com> <1379969936749-5772099.post@n5.nabble.com> <5240C88F.4020006@hogranch.com> <1379982457118-5772120.post@n5.nabble.com> In-Reply-To: <1379982457118-5772120.post@n5.nabble.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 9/23/2013 5:27 PM, saisantoshi wrote: > Not sure what the client_encoding and server_encoding does here? the server encoding gives the character encoding that the data is stored in. the client encoding specifies the encoding used for user input/output, so user data in SQL commands will be converted from client_encoding to server_encoding when its written, and coverted back to the current client_encoding when read. if you're running psql in a windows command shell, try setting the client_encoding to DOS437 or CP437 (I'm not sure what the correct notation is for this) and do your SELECT ... Java itself uses UCS2/UTF16 internally, so I don't know what the right way of displaying text from a java program, it proably depends on whether you're displaying it on a text mode "DOS" window, or in a GUI window, or on a html page. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc