Skip site navigation (1) Skip section navigation (2)

Re: BUG #5398: psql gives syntax error on .sql files with UTF-8 BOM

From: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: "Peter Jukel" <pjukel(at)triplehash(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5398: psql gives syntax error on .sql files with UTF-8 BOM
Date: 2010-04-01 00:53:42
Message-ID: 20100401095342.D026.52131E4D@oss.ntt.co.jp (view raw, whole thread or download thread mbox)
Thread:
Lists: pgsql-bugs
"Peter Jukel" <pjukel(at)triplehash(dot)com> wrote:

> PostgreSQL version: 8.4
> 
> The psql command gives syntax errors when fed .sql files that are saved with
> encoding "UTF-8" and contain a BOM (byte order marker). When the same file
> is saved using the encoding "UTF-8, no BOM", the syntax error is removed.

It will be improved in 9.0, the next release.
Ignore leading UTF-8-encoded Unicode byte-order marker in psql
http://developer.postgresql.org/pgdocs/postgres/release-9-0.html#AEN98917

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



In response to

pgsql-bugs by date

Next:From: Robert HaasDate: 2010-04-01 02:46:02
Subject: Re: BUG #5388: bortdagos
Previous:From: Andy BalholmDate: 2010-04-01 00:45:13
Subject: Re: dividing money by money

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group