Re: BUG #3638: UTF8 Character encoding does NOT work

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: BUG #3638: UTF8 Character encoding does NOT work
Дата
Msg-id 87ps04ebrx.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на BUG #3638: UTF8 Character encoding does NOT work  ("Fil Matthews" <fil@internetmediapro.com>)
Список pgsql-bugs
"Fil Matthews" <fil@internetmediapro.com> writes:

> In Short A Postgres UTF8 database .. PGCLIENENCODING=UTF8
...
> Insert into test values (  chr(146));;

Can you explain what you expected to happen here? Did you, for example, expect
the character with Unicode code point 146 to be inserted? Because the single
byte 146 isn't a valid UTF8 character.

In PostgreSQL 8.2 I don't think there's any function to generate an arbitrary
Unicode code point. You'll have to do that on the client end and encode it in
UTF8 before sending. In PostgreSQL 8.3 chr() will in fact be modified to do
this.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #3638: UTF8 Character encoding does NOT work
Следующее
От: "Hannu Valtonen"
Дата:
Сообщение: BUG #3639: queryplanner degrades to a sequential scan even if there's an index