pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Tesser <JTesser@nbbc.edu>
To: pgsql-jdbc@postgresql.org
Subject: using 8 bit ascii
Date: Wed, 27 Oct 2004 07:55:18 -0500
Message-ID: <04875CB4331F0240A0AD66F9709786510272AC98@paul> (raw)

I have a Postgres database (version 7.4.2) that is using acsii character
233 which is an 8
bit ascii character. I also use jboss.  My problem is when I try to
retrieve 
a resultset that has a record with one of the 8bit ascii characters I
get a 
message from jboss (see error message below.  

My question is there a way to configure the postgres jdbc driver to
allow 
for this range of characters?  

2004-10-26 16:54:51,167 ERROR [STDERR]
org.postgresql.util.PSQLException: Invalid character data was found.
This is most likely caused by stored data containing characters that are
invalid for the character set the database was created in.  The most
common example of this is storing 8bit data in a SQL_ASCII database.
2004-10-26 16:54:51,167 ERROR [STDERR]  at
org.postgresql.core.Encoding.decodeUTF8(Encoding.java:287)
2004-10-26 16:54:51,167 ERROR [STDERR]  at
org.postgresql.core.Encoding.decode(Encoding.java:182)
2004-10-26 16:54:51,167 ERROR [STDERR]  at
org.postgresql.core.Encoding.decode(Encoding.java:198)
2004-10-26 16:54:51,167 ERROR [STDERR]  at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1Resul
tSet.java:201)
2004-10-26 16:54:51,167 ERROR [STDERR]  at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1Resul
tSet.java:475)
2004-10-26 16:54:51,168 ERROR [STDERR]  at
payroll.DeptWorkers.loadWorkers(DeptWorkers.java:52)
2004-10-26 16:54:51,168 ERROR [STDERR]  at
org.apache.jsp.manager_jsp._jspService(manager_jsp.jav




view thread (5+ messages)  latest in thread

Message-ID: <04875CB4331F0240A0AD66F9709786510272AC98@paul>
Permalink:  ../04875CB4331F0240A0AD66F9709786510272AC98@paul/
Also on:    postgresql.org/message-id/04875CB4331F0240A0AD66F9709786510272AC98@paul

 · 

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: JTesser@nbbc.edu
  Subject: Re: using 8 bit ascii
  In-Reply-To: <04875CB4331F0240A0AD66F9709786510272AC98@paul>
  References: <04875CB4331F0240A0AD66F9709786510272AC98@paul>

* 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