Re: Invalid byte sequence

From: Yambu <hyambu(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Invalid byte sequence
Date: 2021-07-01 07:38:38
Message-ID: CALhHtcDQRXRqmZCT2LVk+F470-8qtrOux-W0DDnA=O4Dho2hVg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks Laurenz, any suggestions on what tool I can use to clean the data?

On Thu, Jul 1, 2021 at 9:37 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:

> On Thu, 2021-07-01 at 09:29 +0200, Yambu wrote:
> > ERROR: invalid byte sequence for encoding "UTF8": 0x00
> > CONTEXT: COPY table1, line 377617
>
> That means that there is an ASCII 0 byte in a string somewhere in the file.
> This character is not allowed in strings in PostgreSQL.
> You will have to fix the data before you can load them into PostgreSQL.
>
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Holger Jakobs 2021-07-01 07:40:19 Re: Invalid byte sequence
Previous Message Laurenz Albe 2021-07-01 07:37:26 Re: Invalid byte sequence