Re: ERROR: translation failed from server encoding to wchar_t

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ERROR: translation failed from server encoding to wchar_t
Дата
Msg-id 29139.1199758499@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ERROR: translation failed from server encoding to wchar_t  (ilanco@gmail.com)
Список pgsql-hackers
ilanco@gmail.com writes:
> I am using tsearch2 with pgsql 8.2.5 and get the following error when
> calling to_tsvector :
> "translation failed from server encoding to wchar_t"

> My database is UTF8 encoded and the data sent to to_tsvector comes
> from a bytea column converted to text with
> encode(COLUMN, 'escape').

Two likely theories:

1. Your database encoding is UTF-8, but your locale (LC_CTYPE) assumes
some other encoding.

2. The encode() is yielding something that isn't valid UTF-8.

PG 8.3 contains checks that should complain about both of these
scenarios, but IIRC 8.2 does not.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Dynamic Partitioning using Segment Visibility Maps
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Bug: Unreferenced temp tables disables vacuum to update xid