Re: UTF8 with BOM support in psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UTF8 with BOM support in psql
Дата
Msg-id 7995.1258405313@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: UTF8 with BOM support in psql  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> I'm not sure if replacing a BOM by three spaces is a good way to
> implement "eating", because it might throw off a column indicator
> somewhere, say, but I couldn't reproduce a problem.  Note that the U
> +FEFF character is defined as *zero-width* non-breaking space.

So wouldn't it be better to remove the three bytes, rather than
replace with spaces?  The latter will certainly confuse clients that
think that "column 1" means what they think is the first character.
A syntax error in the first line of the file should be sufficient
to demonstrate the issue.
        regards, tom lane


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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Update on Insert
Следующее
От: Alex Hunsaker
Дата:
Сообщение: Re: ALTER TABLE...ALTER COLUMN vs inheritance