pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hunter Hillegas <lists@lastonepicked.com>
To: PostgreSQL <pgsql-general@postgresql.org>
Cc: Postgre JDBC List <pgsql-jdbc@postgresql.org>
Subject: Invalid Character Data Problem
Date: Fri, 26 Nov 2004 13:43:42 -0800
Message-ID: <BDCCE38E.4E44B%lists@lastonepicked.com> (raw)

I am having some trouble pulling some data out from the database. I have
tried against both 7.4.5, 8.0b4 and 8.0b5 and get the same result.

I have used both the v308 and CVS HEAD of the JDBC driver.

When I SELECT from a certain table, I see this JDBC exception:

"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."

The database is indeed of type SQL_ASCII. The table stores mailing list data
and has about 400,000 rows.

Looking at the data via psql, I see that some of the rows have strange
characters in them, such as question marks where I would not expect them,
etc...

What are my options? Is there a way to identify the 'bad' records, or the
ones causing trouble?

Thanks,
Hunter





view thread (3+ messages)  latest in thread

Message-ID: <BDCCE38E.4E44B%lists@lastonepicked.com>
Permalink:  ../BDCCE38E.4E44B%25lists@lastonepicked.com/
Also on:    postgresql.org/message-id/BDCCE38E.4E44B%lists@lastonepicked.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: lists@lastonepicked.com, pgsql-general@postgresql.org
  Subject: Re: Invalid Character Data Problem
  In-Reply-To: <BDCCE38E.4E44B%lists@lastonepicked.com>
  References: <BDCCE38E.4E44B%lists@lastonepicked.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