Re: Reading £ character from DB is displaying œ character

From: saisantoshi <mr(at)starsborn(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Reading £ character from DB is displaying œ character
Date: 2013-09-24 00:27:37
Message-ID: 1379982457118-5772120.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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-tp5771897p5772120.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message John R Pierce 2013-09-24 03:06:03 Re: Re: Reading £ character from DB is displaying œ character
Previous Message John R Pierce 2013-09-23 23:02:39 Re: Re: Reading £ character from DB is displaying œ character