Re: ERROR: could not convert UTF-8 character 0x00ef to ISO8859-1 possiblesolution

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ERROR: could not convert UTF-8 character 0x00ef to ISO8859-1 possiblesolution
Дата
Msg-id 22055.1114612618@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ERROR: could not convert UTF-8 character 0x00ef to ISO8859-1 possiblesolution  (Guillaume Cottenceau <gc@mnc.ch>)
Ответы Re: ERROR: could not convert UTF-8 character 0x00ef to ISO8859-1 possiblesolution  (Anders Hermansen <anders@yoyo.no>)
Список pgsql-jdbc
Guillaume Cottenceau <gc@mnc.ch> writes:
> My reasoning was that if the first byte of this two-byte
> sequence is 0x00 then the rule that 0xEF is first byte of a
> three-byte sequence doesn't apply, since 0xEF is second byte in
> the sequence.

Looking at the source code, it's clear that it's reporting just the
first byte of the sequence; the 00 is redundant and probably shouldn't
be in the message.

There seem to be two possibilities: either there is a valid 3-byte
UTF8 character, which cannot be converted to LATIN1; or the alleged
UTF8 data isn't really UTF8 at all.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: _pg_keyposition is gone in HEAD
Следующее
От: Martin Keller
Дата:
Сообщение: Problems storing timestamps with calendars