Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 728BB9F9EA9 for ; Mon, 3 Sep 2007 05:07:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63144-10 for ; Mon, 3 Sep 2007 05:07:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from pro33.abac.com (pro33.abac.com [66.226.64.34]) by postgresql.org (Postfix) with ESMTP id 2996A9F959C for ; Mon, 3 Sep 2007 05:07:34 -0300 (ADT) Received: from ashishk ([220.227.213.66]) (authenticated bits=0) by pro33.abac.com (8.14.1/8.14.1) with ESMTP id l8386qgY057890 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 3 Sep 2007 01:07:20 -0700 (PDT) (envelope-from ashish.karalkar@info-spectrum.com) Message-ID: <011d01c7ee01$7a0fc3e0$170211ac@LIONKING.COM> From: "Ashish Karalkar" To: Subject: invalid byte sequence for encoding "UTF8": 0xff Date: Mon, 3 Sep 2007 13:36:58 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_011A_01C7EE2F.802C50D0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/50 X-Sequence-Number: 119974 This is a multi-part message in MIME format. ------=_NextPart_000_011A_01C7EE2F.802C50D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello All, I have a data script which runs fine from PgAdmin SQL Editor,but when I = run this from command prompt I get following error: test=3D# \i /usr/local/pgsql/qsweb1/QSWEB_100_4_Default_Data.sql psql:/usr/local/pgsql/qsweb1/QSWEB_100_4_Default_Data.sql:1: ERROR: = invalid byt e sequence for encoding "UTF8": 0xff HINT: This error can also happen if the byte sequence does not match = the encodi ng expected by the server, which is controlled by "client_encoding". can anybody suggest me what is going wrong. database encoding :UTF8 PostgreSQL details: version -------------------------------------------------------------------------= ------------------------------ PostgreSQL 8.2.0 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.3 = 20041212 (Red Hat 3.4.3-9.EL4) ------=_NextPart_000_011A_01C7EE2F.802C50D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello All,
 
I have a data script which runs fine = from PgAdmin=20 SQL Editor,but when I  run this  from command prompt I = get=20 following error:
 
 
test=3D# \i=20 /usr/local/pgsql/qsweb1/QSWEB_100_4_Default_Data.sql

psql:/usr/local/pgsql/qsweb1/QSWEB_100_4_Default_Data.sql:1:= =20 ERROR:  invalid byt
e sequence for encoding "UTF8": = 0xff
HINT: =20 This error can also happen if the byte sequence does not match the = encodi
ng=20 expected by the server, which is controlled by=20 "client_encoding".
 
can anybody suggest me what is going=20 wrong.
database  encoding = :UTF8
 
PostgreSQL details:
 
 version
-----------------------------------------------= --------------------------------------------------------
 Postgre= SQL=20 8.2.0 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.3 20041212 = (Red Hat=20 3.4.3-9.EL4)
 
------=_NextPart_000_011A_01C7EE2F.802C50D0--