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 16:02:39 -0700
Message-ID: <5240C88F.4020006@hogranch.com> (raw)
In-Reply-To: <1379969936749-5772099.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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On 9/23/2013 1:58 PM, saisantoshi wrote:
> Here is the exact error when trying to set to UT8 and updating £  character.
>
> ERROR:  invalid byte sequence for encoding "UTF8": 0x9c

WIn1252 is a Windows-specific variant of LATIN-1, an 8 bit character set.

0x9C is in fact the oe munged character in Win1252, and is an invalid 
character encoding in UTF8.

the UK pound symbol is 0xA3 in Win1252, and in UTF8, a UK pound sign 
is:  C2 A3, which is U+00A3 in UTF16/UCS2.

Win1252 code table:
http://en.wikipedia.org/wiki/Windows-1252#Code_page_layout

partial UTF8 char table:
http://www.utf8-chartable.de/


ahhhh.    0x9C is the pound symbol in CP437, the MSDOS CGA/EGA/VGA 
text-mode font.



-- 
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: <5240C88F.4020006@hogranch.com>
Permalink:  ../5240C88F.4020006@hogranch.com/
Also on:    postgresql.org/message-id/5240C88F.4020006@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: <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>

* 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