pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: saisantoshi <mr@starsborn.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Reading £ character from DB is displaying œ character
Date: Mon, 23 Sep 2013 17:27:37 -0700 (PDT)
Message-ID: <1379982457118-5772120.post@n5.nabble.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

OK... I tried saving the  £ symbol into DB via java program as supposed 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 
£ symbol in the returned query.. (some gibberish character) May be because
DOS prompt default CP is 437. Not sure what do I need to do in order to see
the  £  symbol in the returned result set in running the queries or vewing
the data in the database.

testdb=> show server_encoding;
 server_encoding
-----------------
 UTF8
(1 row)

testdb=> set client_encoding = 'UTF8';
SET

testdb=> \encoding
UTF8

Select text from test;

*Get £500*   // Actual    ( Expected *Get £500* ) 


Not sure what the client_encoding and server_encoding does here?

Thanks,
Sai



--
View this message in context: http://postgresql.1045698.n5.nabble.com/Reading-character-from-DB-is-displaying-character-tp5771897p...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (11+ messages)  latest in thread

Message-ID: <1379982457118-5772120.post@n5.nabble.com>
Permalink:  ../1379982457118-5772120.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1379982457118-5772120.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mr@starsborn.com
  Subject: Re: Reading £ character from DB is displaying œ character
  In-Reply-To: <1379982457118-5772120.post@n5.nabble.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> <1379982457118-5772120.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox