pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Hunter Hillegas <lists@lastonepicked.com>
Cc: PostgreSQL <pgsql-general@postgresql.org>
Subject: Re: Copying into Unicode - Correcting Errors
Date: Wed, 24 Nov 2004 11:19:44 +0100
Message-ID: <200411241119.44894.peter_e@gmx.net> (raw)
In-Reply-To: <BDC90E4B.4D934%lists@lastonepicked.com>
References: <BDC90E4B.4D934%lists@lastonepicked.com>

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/



view thread (3+ messages)  latest in thread

Message-ID: <200411241119.44894.peter_e@gmx.net>
Permalink:  ../200411241119.44894.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200411241119.44894.peter_e@gmx.net

 · 

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: peter_e@gmx.net, lists@lastonepicked.com, pgsql-general@postgresql.org
  Subject: Re: Copying into Unicode - Correcting Errors
  In-Reply-To: <200411241119.44894.peter_e@gmx.net>
  References: <BDC90E4B.4D934%lists@lastonepicked.com> <200411241119.44894.peter_e@gmx.net>

* 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