Re: Support UTF-8 files with BOM in COPY FROM

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: Support UTF-8 files with BOM in COPY FROM
Дата
Msg-id CAJW2+qdsfRcLY1q62ikH0dJdb8ujhPb6bu6j-rtSm+AAVrqtWA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Support UTF-8 files with BOM in COPY FROM  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Support UTF-8 files with BOM in COPY FROM
Список pgsql-hackers
On Mon, Sep 26, 2011 at 20:12, Magnus Hagander <magnus@hagander.net> wrote:
> I like it in general. But if we're looking at the BOM, shouldn't we
> also look and *reject* the file if it's a BOM for a non-UTF8 file? Say
> if the BOM claims it's UTF16?

-1 because we're depending on manual configuration for now.
It would be reasonable if we had used automatic detection of
character encoding, but we don't. In addition, some crazy
encoding might use BOM codes as a valid character.

-- 
Itagaki Takahiro


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Support UTF-8 files with BOM in COPY FROM
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Support UTF-8 files with BOM in COPY FROM