Re: BUG #3819: UTF8 can't handle \000

Поиск
Список
Период
Сортировка
От Franklin Schmidt
Тема Re: BUG #3819: UTF8 can't handle \000
Дата
Msg-id 7c63948f0712170150w7957adc1wa4227093b700dc17@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #3819: UTF8 can't handle \000  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: BUG #3819: UTF8 can't handle \000  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-bugs
On Dec 17, 2007 1:28 AM, Bruce Momjian <bruce@momjian.us> wrote:
>
> Well, I realize 0x00 is a valid ASCII value and therefore a valid UTF8
> value but we have never had anyone complain they can't store the 0x00
> character because it doesn't mean anything in ASCII.  They use bytea to
> store binary data like 0x00.


Here are a few complaints:

http://www.nabble.com/-tp9058998.html
http://www.nabble.com/-tp11750041.html
http://www.nabble.com/-tp8414157.html

I agree that storing 0x00 in a UTF8 string is weird, but I am
converting a huge database to postgres, and in a huge database, weird
things happen.  Using bytea for a text field just because one in a
million records has a 0x00 doesn't make sense to me.  I did hack
around it in my conversion code to remove the 0x00 but I expect that
anyone else who tries converting a big database to postgres will also
confront this issue.

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

Предыдущее
От: "Franklin Schmidt"
Дата:
Сообщение: Re: BUG #3819: UTF8 can't handle \000
Следующее
От: "Ronny Hellgren"
Дата:
Сообщение: BUG #3821: Wrong language at "Installation Notes"