Support UTF-8 files with BOM in COPY FROM

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Support UTF-8 files with BOM in COPY FROM
Дата
Msg-id CAJW2+qdYg1+xLaHDqnJs3AcKmCSVCDkv_LCAPWUtwmxL9dzVhQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Support UTF-8 files with BOM in COPY FROM
Re: Support UTF-8 files with BOM in COPY FROM
Re: Support UTF-8 files with BOM in COPY FROM
Список pgsql-hackers
Hi,

I'd like to support UTF-8 text or csv files that has BOM (byte order mark)
in COPY FROM command. BOM will be automatically detected and ignored
if the file encoding is UTF-8. WIP patch attached.

I'm thinking about only COPY FROM for reads, but if someone wants to add
BOM in COPY TO, we might also support COPY TO WITH BOM for writes.

Comments welcome.

--
Itagaki Takahiro

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: contrib/sepgsql regression tests are a no-go
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Support UTF-8 files with BOM in COPY FROM