Re: [GENERAL] Byte order mark added by (the envelope please...) pgAdmin3 !!

From: John Gage <jsmgage(at)numericable(dot)fr>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>, pgAdmin Support List <pgadmin-support(at)postgresql(dot)org>
Subject: Re: [GENERAL] Byte order mark added by (the envelope please...) pgAdmin3 !!
Date: 2010-04-22 10:02:18
Message-ID: 8EA7B73E-DF95-4225-88DC-E53F9B812629@numericable.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

I think I should clarify my original "problem" and what I see as the
difficulty in general.

I saved a UTF-8 file with the pgAdmin Query tool, which added the BOM
to the beginning of the file during the save.

I then attempted to run the file using psql with the \i meta command.

I got a syntax error pointing at the very beginning of the file which
turned out to be on account of the BOM.

In other words, files saved with pgAdmin3 Query tool cannot then be
run as files of SQL commands by psql.

The two applications are incompatible at that level.

On Apr 22, 2010, at 11:50 AM, Dave Page wrote:

> On Thu, Apr 22, 2010 at 10:41 AM, John Gage <jsmgage(at)numericable(dot)fr>
> wrote:
>> This may be germane:
>>
>> Filename: trunk/pgadmin3/src/ui/pgadmin3.lng
>> Revision 2954 - (view) (download) - [select for diffs]
>> Modified Sun Nov 30 20:13:28 2003 GMT (6 years, 4 months ago) by
>> andreas
>> File length: 1301 byte(s)
>> Diff to previous 2840
>> adding UTF-8 BOM
>
> No, that's a BOM being added to a multi-language source file.
> pgAdmin's Unicode support has always written an appropriate BOM to
> Unicode files. See
> http://svn.pgadmin.org/cgi-bin/viewcvs.cgi/trunk/pgadmin3/pgadmin/utils/utffile.cpp
>
> --
> Dave Page
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise Postgres Company
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Magnus Hagander 2010-04-22 10:12:24 Re: [GENERAL] Byte order mark added by (the envelope please...) pgAdmin3 !!
Previous Message Dave Page 2010-04-22 09:50:13 Re: [GENERAL] Byte order mark added by (the envelope please...) pgAdmin3 !!

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2010-04-22 10:11:48 Re: Getting the typename of a polymorphic function's magical $0 variable
Previous Message Dave Page 2010-04-22 09:50:13 Re: [GENERAL] Byte order mark added by (the envelope please...) pgAdmin3 !!