pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Re: Reading £ character from DB is displaying œ character
Date: Mon, 23 Sep 2013 20:06:03 -0700
Message-ID: <5241019B.7090008@hogranch.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (11+ messages)  latest in thread

Message-ID: <5241019B.7090008@hogranch.com>
Permalink:  ../5241019B.7090008@hogranch.com/
Also on:    postgresql.org/message-id/5241019B.7090008@hogranch.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: pierce@hogranch.com
  Subject: Re: Reading £ character from DB is displaying œ character
  In-Reply-To: <5241019B.7090008@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> <1379982457118-5772120.post@n5.nabble.com> <5241019B.7090008@hogranch.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