Re: UTF8 with BOM support in psql - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: UTF8 with BOM support in psql
Date
Msg-id 4ADD96F9020000250002BB9B@gw.wicourts.gov
Whole thread Raw
In response to Re: UTF8 with BOM support in psql  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> wrote:
> What I think we might sensibly do is to eat the leading BOM of an
> SQL file iff the client encoding is UTF8, and otherwise treat it as
> just bytes in whatever the encoding is.
Only at the beginning of the file or stream?  What happens when people
concatenate files?  Would it make sense to treat BOM as whitespace in
UTF-8, or maybe ignore it entirely?
-Kevin


pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Controlling changes in plpgsql variable resolution
Next
From: Magnus Hagander
Date:
Subject: Re: Application name patch - v2