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 B6B143A3CD1; Wed, 24 Nov 2004 16:26:27 +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 46438-04; Wed, 24 Nov 2004 16:26:17 +0000 (GMT) Received: from omta18.mta.everyone.net (sitemail2.everyone.net [216.200.145.36]) by svr1.postgresql.org (Postfix) with ESMTP id 335CD3A429A; Wed, 24 Nov 2004 16:25:56 +0000 (GMT) Received: from pmta01.mta.everyone.net (unknown [216.200.145.26]) by omta18.mta.everyone.net (Postfix) with ESMTP id 83B3D4027C; Wed, 24 Nov 2004 08:25:47 -0800 (PST) X-Eon-Sig: AQG5s3xBpLYLBkwraAIAAAAD,574851ea9c175c9f246d5f1b00677d92 Received: from [192.168.1.81] (207.13.228.2 [207.13.228.2]) by pmta01.mta.everyone.net (EON-AUTHRELAY) with ESMTP id D1615590; Wed, 24 Nov 2004 08:25:47 -0800 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Wed, 24 Nov 2004 08:25:39 -0800 Subject: Re: Copying into Unicode - Correcting Errors From: Hunter Hillegas To: Peter Eisentraut Cc: PostgreSQL , Postgre JDBC List Message-ID: In-Reply-To: <200411241119.44894.peter_e@gmx.net> 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/1217 X-Sequence-Number: 69297 Peter, Thanks for the reply. Perhaps I should go into some more detail about what is going on. Originally, the database was in SQL_ASCII and the data had been imported via COPY from a text file. The text file is no longer available. The data went into the table just fine. When selecting from the table via JDBC, I see this 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.' Ok, so I've never seen this but I do a little investigation and some of the stuff I see online suggests that I should change the database encoding. When I try UNICODE, I get the error below during my data import. The 'bad' data looks like this when I SELECT: | Ver?onica | Is it possible that this is an issue with beta5 in conjunction with the JDBC driver and encoding? I didn't see a CHANGELOG note that would make me suspicious but I'm not sure I would know if it I saw it. Hunter > From: Peter Eisentraut > Date: Wed, 24 Nov 2004 11:19:44 +0100 > To: Hunter Hillegas > Cc: PostgreSQL > Subject: Re: [GENERAL] Copying into Unicode - Correcting Errors > > Hunter Hillegas wrote: >> I need to import a file into a Unicode database. >> >> I am getting an error: >> >> ERROR: Unicode characters greater than or equal to 0x10000 are not >> supported >> CONTEXT: COPY mailing_list_entry, line 30928, column >> first_last_name: "Ver?nica" > > If your file really does have Unicode characters greater than or equal > to 0x10000, then I don't have a good answer. > > But more often, this error means that your file is not in Unicode in the > first place. If so, set the client encoding to the real encoding of > your file, e.g. > > export PGCLIENTENCODING=LATIN1 > > -- > Peter Eisentraut > http://developer.postgresql.org/~petere/