Re: speaks psql unicode?

From: John DeSoi <desoi(at)pgedit(dot)com>
To: thomas(at)chille(dot)de
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: speaks psql unicode?
Date: 2005-01-15 04:43:45
Message-ID: 0A257D4B-66B0-11D9-B2D0-000A95B03262@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jan 10, 2005, at 10:20 AM, Thomas Chille wrote:

> if i try to import data via SQL-Inserts (exported with pgManager) out
> from an utf-8 file i get always parse errors in the first line.
>
> After switching to ascii and using of SET client_encoding TO 'latin1'
> i can import all lines, but some unicode-characters are, like
> expected, damaged.
>
> Now my question: Can psql process Unicodefiles?

Sure. Try this at the top of your file:

\encoding UNICODE

I think you could also set the ENCODING variable on the command line
with the -v option.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brendan Jurd 2005-01-15 06:14:12 Bogus subscription instructions on website
Previous Message Greg Stark 2005-01-15 03:42:05 Re: [HACKERS] Much Ado About COUNT(*)