X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 94F3D3A4ACB; Fri, 26 Nov 2004 21:43:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50948-03; Fri, 26 Nov 2004 21:43:44 +0000 (GMT) Received: from omta16.mta.everyone.net (sitemail2.everyone.net [216.200.145.36]) by svr1.postgresql.org (Postfix) with ESMTP id 92FF13A4B08; Fri, 26 Nov 2004 21:43:44 +0000 (GMT) Received: from pmta01.mta.everyone.net (unknown [216.200.145.26]) by omta16.mta.everyone.net (Postfix) with ESMTP id DBF383FE2B; Fri, 26 Nov 2004 13:43:43 -0800 (PST) X-Eon-Sig: AQG5s3xBp6OPdj6jLgIAAAAC,b1c324dec5abe45c7b89bc6f4ed4d494 Received: from [192.168.1.75] (207.13.228.2 [207.13.228.2]) by pmta01.mta.everyone.net (EON-AUTHRELAY) with ESMTP id 2A830AE5; Fri, 26 Nov 2004 13:43:43 -0800 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Fri, 26 Nov 2004 13:43:42 -0800 Subject: Invalid Character Data Problem From: Hunter Hillegas To: PostgreSQL Cc: Postgre JDBC List Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/1335 X-Sequence-Number: 69415 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