Re: [BUG] - Invalid UNICODE character sequence found(0xc000)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUG] - Invalid UNICODE character sequence found(0xc000)
Дата
Msg-id 27455.1075692374@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [BUG] - Invalid UNICODE character sequence found(0xc000)  ("Antonio Gallardo" <antonio@apache.org>)
Ответы Re: [BUG] - Invalid UNICODE character sequence found(0xc000)  (Paul Thomas <paul@tmsl.demon.co.uk>)
Список pgsql-jdbc
"Antonio Gallardo" <antonio@apache.org> writes:
> Paul Thomas dijo:
>> I can reproduce this on my Fedora machine. On an older system with RH7.2
>> and PG 7.3.4 compiled from source, I don't get the problem. Re-compiling
>> from source on the Fedora machine still gives the error. HTH

> I already filled a bug in Fedora:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=113231

I was finally able to reproduce this with Paul's help.

The bug turns out not to be Fedora-specific at all.  I believe it will
happen on any platform if you are using both a multibyte database
encoding (such as Unicode) *and* a non-C locale.

PG 7.4 has a more restricted form of the bug --- it's not locale
specific but does still require a multibyte encoding.  Here is a Unicode
example:

test=# select * from test where txtfield like '\277%'; --
ERROR:  invalid byte sequence for encoding "UNICODE": 0xc0

I've committed fixes in both CVS branches.

            regards, tom lane

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: FW: [webmaster] jdbc site: documentation links broken
Следующее
От: "Luca Di Mauro"
Дата:
Сообщение: Problem wih JDBC driver under Windows XP