Re: UTF8 with BOM support in psql

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: UTF8 with BOM support in psql
Дата
Msg-id 20091020151042.379E.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: UTF8 with BOM support in psql  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> wrote:

> Itagaki Takahiro wrote:
> > When psql opens a file with -f or \i, it checks first 3 bytes of the
> > file. If they are BOM, discard the 3 bytes and change client encoding
> > to UTF8 automatically.
> 
> Seems there is community support for accepting BOM:
>     http://archives.postgresql.org/pgsql-hackers/2009-09/msg01625.php

Thank yor for information.
I read the thread that we discussed about BOM handling in *data types*.
I agree the decision in the thead that we should not skip BOM characters,
but we can handle BOM in a different way in the head of *files* for psql
and COPY input.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: UTF8 with BOM support in psql
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Controlling changes in plpgsql variable resolution