Re: Hex characters in COPY input

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Hex characters in COPY input
Date: 2015-02-27 02:54:03
Message-ID: CALd+dceyY73-7vPux-CmFiF3d+gU=c0R36fGfK-ceBrjztx3ww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Feb 26, 2015 at 9:50 PM, Melvin Call <melvincall979(at)gmail(dot)com>
wrote:

> Montreal where the e is an accented e. The output ends up in the text file
> as
> Montr\xe9al, where the xe9 is a single character. When I try to copy that
> into
> my PostgreSQL table, I get an error "ERROR: invalid byte sequence for
> encoding
>

Character code E9 is not UTF8. Don't tell Postgres you're importing UTF8 if
you're not.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marc Mamin 2015-02-27 07:57:15 Re: range type expression syntax
Previous Message Melvin Call 2015-02-27 02:50:30 Hex characters in COPY input