Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOGom-00075D-E1 for pgsql-jdbc@arkaria.postgresql.org; Tue, 24 Sep 2013 00:49:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VOGol-00047r-UK for pgsql-jdbc@arkaria.postgresql.org; Tue, 24 Sep 2013 00:49:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOGTe-0002TT-NU for pgsql-jdbc@postgresql.org; Tue, 24 Sep 2013 00:27:42 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOGTb-00033w-JO for pgsql-jdbc@postgresql.org; Tue, 24 Sep 2013 00:27:42 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VOGTZ-00049U-44 for pgsql-jdbc@postgresql.org; Mon, 23 Sep 2013 17:27:37 -0700 Date: Mon, 23 Sep 2013 17:27:37 -0700 (PDT) From: saisantoshi To: pgsql-jdbc@postgresql.org Message-ID: <1379982457118-5772120.post@n5.nabble.com> In-Reply-To: <5240C88F.4020006@hogranch.com> 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> Subject: =?UTF-8?Q?Re:_Reading_=C2=A3_character_from?= =?UTF-8?Q?_DB_is_displaying_=C5=93_character?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.8 (/) 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 OK... I tried saving the =C2=A3 symbol into DB via java program as suppose= d to psql command line and it works fine in saving/retreiving from DB ( via java program) But the issue here is, when I run the sql commands, it does not show me the= =20 =C2=A3 symbol in the returned query.. (some gibberish character) May be bec= ause DOS prompt default CP is 437. Not sure what do I need to do in order to see the =C2=A3 symbol in the returned result set in running the queries or ve= wing the data in the database. testdb=3D> show server_encoding; server_encoding ----------------- UTF8 (1 row) testdb=3D> set client_encoding =3D 'UTF8'; SET testdb=3D> \encoding UTF8 Select text from test; *Get =C3=82=C2=A3500* // Actual ( Expected *Get =C2=A3500* )=20 Not sure what the client_encoding and server_encoding does here? Thanks, Sai -- View this message in context: http://postgresql.1045698.n5.nabble.com/Readi= ng-character-from-DB-is-displaying-character-tp5771897p5772120.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc