From: Josh Berkus <josh@agliodbs.com>
To: Willy-Bas Loos <willybas@gmail.com>
Cc: pgsql-admin@postgresql.org
Cc: pgadmin-support@postgresql.org
Subject: Re: [ADMIN] syntax error for no apparent reason
Date: Fri, 03 Dec 2010 17:45:36 -0800
Message-ID: <4CF99D40.90306@agliodbs.com> (raw)
In-Reply-To: <AANLkTin-uSv1ithFyM1ppEQMga7rv2uJASCAeroif9aJ@mail.gmail.com>
References: <AANLkTin-uSv1ithFyM1ppEQMga7rv2uJASCAeroif9aJ@mail.gmail.com>
> I've encountered this before, psql gives me a syntax error for no clear
> reason. It's allways on the first character of a sql file.
> I think that there must be some strange character code at the first
> position, maybe it is because i share a ntfs partition with the windows
> installation on my laptop and move files around.
Yeah, this is caused by pgadmin adding a unicode marker at the first
position of the file. If you uncheck "Read and Write Unicode UTF-8
Files" in the preferences, this issue should go away.
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: josh@agliodbs.com, willybas@gmail.com, pgadmin-support@postgresql.org
Subject: Re: [ADMIN] syntax error for no apparent reason
In-Reply-To: <4CF99D40.90306@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox