Re: Inserting é in psql - inv - Mailing list pgsql-general

From Richard Huxton
Subject Re: Inserting é in psql - inv
Date
Msg-id 4417E187.1070501@archonet.com
Whole thread Raw
In response to Inserting é in psql - invalid byte sequence for encoding "UNICODE": 0xe9  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
CSN wrote:
> 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

Something isn't UTF-8, possibly your terminal settings?

If you have a text-editor that lets you set character-encoding then you
can try feeding the query into psql from a file. If that works then it's
your terminal.

I always have endless trouble with this sort of stuff myself, so you're
not alone.
--
   Richard Huxton
   Archonet Ltd


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: out of memory using Postgres with Spring/Hibernate/Java
Next
From: "chris smith"
Date:
Subject: full text indexing