Re: Invalid byte sequence for encoding "UTF8": 0xedbebf

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Invalid byte sequence for encoding "UTF8": 0xedbebf
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C2068E56AF@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Invalid byte sequence for encoding "UTF8": 0xedbebf  (BRUSSER Michael <Michael.BRUSSER@3ds.com>)
Ответы Re: Invalid byte sequence for encoding "UTF8": 0xedbebf  (BRUSSER Michael <Michael.BRUSSER@3ds.com>)
Список 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 по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: streaming replication trigger file
Следующее
От: Sanjay Rao
Дата:
Сообщение: Re: streaming replication trigger file