Re: Inserting in psql - invalid byte sequence for encoding "UNICODE": 0xe9

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Inserting in psql - invalid byte sequence for encoding "UNICODE": 0xe9
Date: 2006-03-15 15:07:09
Message-ID: 20401.1142435229@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

CSN <cool_screen_name90001(at)yahoo(dot)com> writes:
> I created a new database with encoding UTF8, connected
> using psql, and ensured the client encoding is also
> UTF8 (Unicode). But when I try to insert characters
> like '', I get this error:

> ERROR: invalid byte sequence for encoding "UNICODE":
> 0xe9

Whatever you're typing in is not actually sending UTF8 to psql.
You probably need to be fooling with the settings of xterm or
whatever window system you're working in.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message TJ O'Donnell 2006-03-15 15:47:36 Five reasons why you should never use PostgreSQL -- ever
Previous Message Tom Lane 2006-03-15 14:52:48 Re: Dumping rows into an array?