Re: invalid byte sequence for encoding "UTF8": 0x00 - Mailing list pgsql-jdbc

From Albe Laurenz
Subject Re: invalid byte sequence for encoding "UTF8": 0x00
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17D2EDBA@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: invalid byte sequence for encoding "UTF8": 0x00  (JasmineLiu <liuyuanyuangogo@gmail.com>)
Responses Re: invalid byte sequence for encoding "UTF8": 0x00
Re: invalid byte sequence for encoding "UTF8": 0x00
List pgsql-jdbc
JasmineLiu wrote:
> I've also got this problem while copy or insert data from MS SQL Server to
> PostgreSQL.
> SQLServer 2008 R2, encoding :GBK
> PostgreSQL 9.3.4, encoding:UTF8
> 
> Rather than modify the column value in sql server,
> are  there any other ways to solve this problem?
> Better to give me an  examples.

You will never be able to insert a null character into a PostgreSQL database.
You can either modify the source data or change the data in transit.

Yours,
Laurenz Albe

pgsql-jdbc by date:

Previous
From: JasmineLiu
Date:
Subject: Re: invalid byte sequence for encoding "UTF8": 0x00
Next
From: JasmineLiu
Date:
Subject: Re: invalid byte sequence for encoding "UTF8": 0x00