Re: Invalid byte sequence for encoding "UTF8": 0xedbebf - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Invalid byte sequence for encoding "UTF8": 0xedbebf
Date
Msg-id D960CB61B694CF459DCFB4B0128514C2068E56AF@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Invalid byte sequence for encoding "UTF8": 0xedbebf  (BRUSSER Michael <Michael.BRUSSER@3ds.com>)
Responses Re: Invalid byte sequence for encoding "UTF8": 0xedbebf  (BRUSSER Michael <Michael.BRUSSER@3ds.com>)
List pgsql-general
BRUSSER Michael wrote:
> Is there a way to find the records with the text field containing
Unicode bytes "0xedbebf"?
>
> Unfortunately this is a very old version 7.3.10

This should work on 7.3 (according to the documentation):

SELECT id FROM nlsdata WHERE position('\360\235\204\236'::bytea IN
val::bytea) = 1;

Here "val" is the column containing the values in question.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: streaming replication trigger file
Next
From: Sanjay Rao
Date:
Subject: Re: streaming replication trigger file